DT_TO conversions

Converting from the variable type DATE_AND_TIME to a different type: The type will be stored internally in a DWORD in seconds since Jan. 1, 1970. This value will then be converted. When you perform a type conversion from a larger to a smaller type, you risk losing some information . For STRING type variables, the result is the DATE_AND_TIME constant.

Examples in ST:

byt :=DT_TO_BYTE(DT#1970-01-15-05:05:05); (*
Result is 129 *)

str:=DT_TO_STRING(DT#1998-02-13-14:20); (* Result is
'DT#1998-02-13-14:20' *)

vtod:=DT_TO_TOD(DT#1998-02-13-14:20); (* Result is TOD#14:20
*)

vdate:=DT_TO_DATE(DT#1998-02-13-14:20); (* Result is D#1998-02-13
*)

vdw:=DT_TO_DWORD(DT#1998-02-13-14:20); (* Result is 16#34E45690
*)