This is an attempt to document the interpretation of various date
fields in the ttninjs spec. Some fields are internal to TT and not
visible in metadata delivered to customers. Internal fields are
prefixed _
.
Is the time this version of the object in question was created.
- For photos this is the time of the photo.
- For news articles it is the time of release.
- For planning posts it is the time the planning post was created.
The time we added the object to our database.
- For photos where we act as a slave database, this is the time of archival in SDL.
- For news articles it is when we added it to our database.
- For planning it is when we added it to our database.
The time an object is embargoed until. Include a time.
Date part only no time (see datetime).
The date of an object. This is most often the same as
versioncreated
, with notable exceptions:
- For photos this is the date the photo was taken.
- For news articles it is is the date the news story was released.
- For planning it is the date of the planned event.
Date and time
The date and time of an object.
This field is exactly the same as date, but only exists when there is a relevant time to communicate. For items where we have no time, just a date (such as for old photography), this field is left blank.
We want to avoid confusion about communicating 00:00 as time, when we actually have no relevant time data.
Date part only
Same as date but for ending.
Date and time
Same as datetime but for ending.
Internal field used for search result sorting. It is mapped differently depending on type of data.
news
this field is set toversioncreated
(time of news story).planning
this field is set todatetime
(time of planned event).photos
:- if
versioncreated
is19700101
we believe it's unix time (epoch) 0 and not a correct date. - if
versioncreated
is not okay:- use
versionstored
if it is before last midnight. The midnight rule is to avoid old photos appear on first page. - else
null
(we have no okay date)
- use
- if
- if
versioncreated
is okay:- use
versioncreated
if it is before last midnight. - else use
now
. This is so that photography for today that are indexed/recevied out-of-order, still will appear in the order we receive them.
- use