Tinderbox User-to-User Forum (for formal tech support please email: info@eastgate.com)
http://www.eastgate.com/Tinderbox/forum//YaBB.cgi
Tinderbox Users >> Documentation and Tutorials >> aTbRef - corrections re Time & seconds
http://www.eastgate.com/Tinderbox/forum//YaBB.cgi?num=1357729366

Message started by Mark Anderson on Jan 9th, 2013, 6:02am

Title: aTbRef - corrections re Time & seconds
Post by Mark Anderson on Jan 9th, 2013, 6:02am

At some undocumented point (v5.0+?), TB shifted to coercing the seconds element to zero, i.e. '00'. This means that manually input seconds in date(string) inputs are ignored and that designators like 'today' set a date/time rounds to 00 seconds.

In TBX source code, some date date created in older TB versions, such as $Created, may still be stored with a non-zero seconds element. Whatever, within the current app, all dates are treated (and string-exported) as if seconds were always zero. Testing in v5.11.2, all Date data is created  with '00' seconds, even for designators like "now", i.e. current date/time.

Previously, some TB methods set actual seconds but as key attributes don't show seconds in date/times without altering the user's settings, this led to some confusion when comparing dates.

Anyway, aTbRef should reflect the status quo a bit better now. For new users the simple version is TB doesn't use time below minute level. Seconds aren't shown in date/times in the UI, are ignored in inputs, and always export (if needed by format) as 00.

Tinderbox User-to-User Forum (for formal tech support please email: info@eastgate.com) » Powered by YaBB 2.2.1!
YaBB © 2000-2008. All Rights Reserved.