Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/nitin-bommi/date-and-time
Operations on datetime, calendar modules
https://github.com/nitin-bommi/date-and-time
Last synced: 12 days ago
JSON representation
Operations on datetime, calendar modules
- Host: GitHub
- URL: https://github.com/nitin-bommi/date-and-time
- Owner: nitin-bommi
- License: apache-2.0
- Created: 2019-12-11T07:11:13.000Z (about 5 years ago)
- Default Branch: master
- Last Pushed: 2019-12-19T11:03:29.000Z (about 5 years ago)
- Last Synced: 2024-11-18T07:40:42.481Z (about 1 month ago)
- Language: Python
- Size: 20.5 KB
- Stars: 2
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Date-and-Time
#### Many operations can be performed on date and time.
__Python provides a module `datetime` which contains many classes which include__ :-
+ `date`
+ `time`
+ `calendar`
+ `datetime`and so on.
## Getting started
We get access to this module by importing it using,
```python
import datetime
```After importing this module and a specific Class of our requirement, we create an instance of this Class by initialising an object.
We use various methods associated with that object to perform the tast.Usually, while importing the module, we import the class also.
```python
from datetime import date
```__Basic operations like__
* Comparison
* Arithmetic operations
* Date difference.can be performed.