TSELEMENTS->
date
time
Configuration parameters
The TSELEMENTS->
function consumes an optional STRING timezone and a LIST of LONG describing a time and date and pushes back the LONG timestamp. The LIST of LONG follows the format given by ->TSELEMENTS
.
Valid values for the timezone can be found on the Joda website in any of the three columns. If no timezone is specified the pushed back representation is UTC.
TSELEMENTS-> is available since version 1.2.0.
See also
Signatures
Examples
//[ year month day_of_month hour minute second microseconds ]
[ 1970 5 23 21 21 18 912345 ] TSELEMENTS->
[ 2009 02 13 15 31 31 234567 ] 'America/Los_Angeles' TSELEMENTS->
[ 2009 02 14 6 01 31 234567 ] 'Asia/Rangoon' TSELEMENTS-> ISO8601
// there might be only the first parameters. Default to 0 or first.
[ 2009 02 14 6 01 31 234567 ] TSELEMENTS-> ISO8601
[ 2009 02 14 6 01 31 ] TSELEMENTS-> ISO8601
[ 2009 02 14 6 01 ] TSELEMENTS-> ISO8601
[ 2009 02 14 6 ] TSELEMENTS-> ISO8601
[ 2009 02 14 ] TSELEMENTS-> ISO8601
[ 2009 02 ] TSELEMENTS-> ISO8601
[ 2009 ] TSELEMENTS-> ISO8601
NOW ->TSELEMENTS
'tsElements' STORE
$tsElements 1 GET // Get month index
12 % 1 + // Find next month index (1-indexed!)
'nextMonth' STORE
$tsElements $nextMonth 1 SET // Update the tsElements with next month index
TSELEMENTS->