question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

ENH: Store `info` dates as `datetime` objects

See original GitHub issue

In 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:closed
  • Created 4 years ago
  • Comments:6 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
larsonercommented, Nov 12, 2019

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)

0reactions
agramfortcommented, Dec 28, 2019

this is now done too.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found