On Thursday, February 13, 2020 at 12:12:52 AM UTC-8, TiddlyTweeter wrote:
>
> As part of creating tiddlers in "raw" format for direct insertion into TW 
> I am manipulating the "created" date.
> My question is this ...
>
> *What is the EARLIEST date you can enter?*
>
>
Unlike unix dates, which are stored as "milliseconds since start date" 
(which is officially 00:00:00 UTC on 1 January 1970), dates in TW are 
stored as a string of zeros representing year, month, day, hour, minutes, 
seconds, milliseconds, using zero-padded values with 4-digits for year, 
3-digits for milliseconds, and 2-digits for all other values.  Thus, the 
earliest date that can be stored is "00000000000000000" (17 zeros in total).

If you create a tiddler with a field "testdate" containing the above string 
of zeros, and then display it using
<$view field="testdate" format="date" template="[UTC]YYYY 0MM 0DD 
0hh:0mm:0ss.0XXX" />

The result is: *1899 11 30 00:00:00.00*

I'm not sure why this is the result, but that's what it shows.

-e
 

-- 
You received this message because you are subscribed to the Google Groups 
"TiddlyWiki" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/6d1a6994-6cd5-467a-b822-990cfc6ec84d%40googlegroups.com.

Reply via email to