NAME
DatetimeQuantity2Seconds — Convert a datetime quantity into a total number of seconds.
SYNOPSIS
DatetimeQuantity2Seconds DatetimeQuantity
DESCRIPTION
Return Value
Total number of seconds represented by the datetime quantity.
Arguments
DatetimeQuantityA datetime quantity. See More Info for format information.
More Info
Currently, the datetime quantity must be of the form ddddThh:mm:ss, where dddd is four digits for the number of days to add or subtract, hh is two digits for the number of hours, and mm and ss are for minutes and seconds.

You can make the quantity negative by putting a minus sign in the front. If you do, you will get back a negative number of seconds.

We may, in a future release, allow changing the format of the datetime quantity.


For information regarding exceptions / errors, see here.
EXAMPLES
% DatetimeQuantity2Seconds 0001T01:01:01
90061
% DatetimeQuantity2Seconds -0001T01:01:01
-90061
SEE ALSO
Hhmmss2Seconds, IsDatetimeQuantity, Seconds2DatetimeQuantity
KEYWORDS
conversion, datetime, time