Implement remaining datetime methods
See original GitHub issueWe need to implement toordinal()
and fromordinal()
along with the new timestamp()
method.
Also our isoformat()
method should be updated to include the timespec
arg.
Issue Analytics
- State:
- Created 3 years ago
- Comments:13 (10 by maintainers)
Top Results From Across the Web
datetime — Basic date and time types — Python 3.11.1 ...
The datetime module supplies classes for manipulating dates and times. While date and time arithmetic is supported, the focus of the implementation is...
Read more >How to find remaining time using JavaScript? - Stack Overflow
1 Answer 1 ... You can use setInterval and clearInterval functions for this purpose. You would have to create a function to do...
Read more >Using Python datetime to Work With Dates and Times
In this section, you'll use relativedelta to calculate the time remaining until PyCon, develop a function to print the time remaining in a...
Read more >Demystifying DateTime Manipulation in JavaScript - Toptal
Try to avoid creating a date from a string unless it is in ISO date format. Use the Date(year, month, date, hours, minutes,...
Read more >DateTime Struct (System) - Microsoft Learn
Use the default date time format; Format a date and time using a specific culture; Format a ... and the remaining three dates...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Technically, 737741 is a valid unix timestamp, I believe @systemcatch was referring to the fact it would create ambiguity in parsing ordinals vs UNIX timestamps.
We should also make sure we support the
timespec
argument forisoformat()
: https://docs.python.org/3/library/datetime.html#datetime.datetime.isoformat.Edit: oops did not notice this was already mentioned in our original issue 😃.