[Date->MillisecondsInDay] is an accessor for getting or setting the millisecondsinday field for a date object. Ranges from 0 to 23:59:59.999 (regardless of DST).
Getting uses no parameters and returns the millisecondsinday value as an integer.
Setting requires an integer parameter, and supports the =, += and -= operators. Setting modifies the date object in-place, but does not return a value.
Date Object->millisecondsinday Date Object->millisecondsinday=Integer Date Object->millisecondsinday+=Integer Date Object->millisecondsinday-=Integer
Use the [Date->MillisecondsInDay] method. The following example uses a single date object, then gets the millisecondsinday and returns its value.
Next we set the millisecondsinday field to a new value using the = operator, then set it again by adding 1000 to the millisecondsinday using the += operator, and set it once more by subtracting 1000 from the millisecondsinday using the -= operator. We return the result for each set operation.
local(d) = date('2011-02-21 08:00:00') #d->millisecondsinday + '<br>' #d->millisecondsinday=1000 #d + '<br>' #d->millisecondsinday+=1000 #d + '<br>' #d->millisecondsinday-=1000 #d
28800000 2011-02-21 00:00:01 2011-02-21 00:00:02 2011-02-21 00:00:01
Please note that periodically LassoSoft will go through the notes and may incorporate information from them into the documentation. Any submission here gives LassoSoft a non-exclusive license and will be made available in various formats to the Lasso community.