ENH: Store `info` dates as `datetime` objects
See original GitHub issueIn principle there is no reason we can’t store info['meas_date'] and other date entries as datetime objects. @agramfort proposed this and it makes sense to me. On read we convert to datetime and on write we convert to what the FIF format wants to see.
I can work on it if people agree it’s worthwhile.
Issue Analytics
- State:
- Created 4 years ago
- Comments:6 (6 by maintainers)
Top Results From Across the Web
Standard date and time format strings | Microsoft Learn
Learn how to use a standard date and time format string to define the text representation of a date and time value in...
Read more >Using Python datetime to Work With Dates and Times
This object stores the hour , minute , second , microsecond , and tzinfo (time zone information). datetime. datetime is a combination of...
Read more >Python Datetime Tutorial: Manipulate Times, Dates, and Time ...
datetime helps us identify and process time-related elements like dates, hours, minutes, seconds, days of the week, months, years, etc. It ...
Read more >Convert date to datetime in Python - Stack Overflow
You can use datetime.combine(date, time) ; for the time, you create a datetime.time object initialized to midnight. from datetime import date from datetime ......
Read more >Time and Dates (astropy.time) — Astropy v5.2
When a Time object is constructed from a timezone-aware datetime , no timezone information is saved in the Time object. However, Time objects...
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

info['meas_date']is easily interpretable by users, we hide the complications of the FIF format from them (they don’t need to know the details)this is now done too.