Thanks Colm, The links were useful. For the time being I am going to store the date including seconds in a custom field. The seconds are not stored in a TW and changing this might brake others things that are not on my radar. Your example returns always 00 for the second part in a TW.
Okido On Sep 27, 10:42 am, colmjude <[email protected]> wrote: > On Sep 26, 5:54 pm, okido <[email protected]> wrote: > > > I used the tiddler creation date for sorting linked documents on > > creation time. > > Minutes were OK in the past as I was not able to generate 2 docs > > within a minute however now documents are generated within seconds so > > sorting on the creation date in minutes is not working anymore. > > > Is there a way to add seconds to the creation date by changing a > > formatter ???? > > The creation date of a tiddler stores a date object that was created > when the tiddler was created. Using this object you should be able to > retrieve the seconds part of the time it was created. > Tiddlywiki has a formatSting method[1] on all date objects that > returns the date object as a string given a format[2] you choose or > create. For example > store.getTiddler("TiddlerName").created.formatString("DDth mmm > hh:mm:ss"); > which will return something like > "6th Apr 14:48:32" > > Hope that helps > > Colm > > [1] -http://tiddlywikidev.tiddlyspace.com/Dates#section-2 > [2] -http://tiddlywikidev.tiddlyspace.com/ -- You received this message because you are subscribed to the Google Groups "TiddlyWikiDev" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/tiddlywikidev?hl=en.
