Replies: 3 comments 16 replies
-
I think that there are two issues here regarding datetime formatting.
|
Beta Was this translation helpful? Give feedback.
-
I don't think they are similar. For ISO all we have to say is: "All dates are ISO compatible" (maintenance and tools for free). The second one: "AIND follows the following format for dates:
The maintenance cost exists either way! Just because someone already wrote something that implements this bespoke format, it does not mean that everyone else did. Are there not resources that must also be spent such that the current asset format is disseminated to other pipelines that could otherwise simply use standard tools?
I agree, that's why my preferred solution for common pipelines, if possible, would be:
Unless you require timezone information (which is not planned from what I understood), the information in the datetime is the same. |
Beta Was this translation helpful? Give feedback.
-
This has been reverted. Don't parse names! |
Beta Was this translation helpful? Give feedback.
-
My understanding is that metadata 2.0 will change the asset naming pattern from
<platform>_<subject_id>_YYYY-MM-DD_HH-MM-SS
to
<subject_id>_YYYYMMDDTHHMMSSZ
(time in UTC)maybe we will always use pacific time, in which case it would be
<subject_id>_YYYY-MM-DD-THH-MM-SS-08:00
(during PST)<subject_id>_YYYY-MM-DD-THH-MM-SS-07:00
(during PDT)EDIT: The proposed update will use local time:
<subject_id>_YYYYMMDDTHHMMSS
(local time)(1) I'm fine with removing the platform prefix. The platform never made sense to me since experiments were often mixed. It's a little annoying to change analysis/data management code.
(2) I strongly object to changing the time encoding pattern!
The previous format implied the local Seattle time. The new format is explicit about time zones, but leads to either annoying daylight saving time changes. Or we use UTC, in which case referring to assets becomes super confusing. For example, a session recorded at 6pm on April 1st, would have an asset name of April 2nd.session_start_time
field. That argument makes sense, but has two problems. First, people will refer to assets by their name in conversations/manual tracking/debugging. This creates the sort of confusion I mentioned above about time zones. Second, if the intent is to discourage parsing information from the asset name, then why does it matter what format we encode time information in the asset name? So I'm not sure what value this change addsBeta Was this translation helpful? Give feedback.
All reactions