Page 1 of 1

Timestamp to internal format

Posted: Sat Dec 02, 2006 2:46 pm
by wannabexpert
Is there a way to convert timestamp to internal format? I know about ICON/OCON functions a little bit,But I cant find this type of conversion in the document or using help in DS.

Posted: Sat Dec 02, 2006 3:53 pm
by chulett
Curious why you would need one in internal format? What are you planning on doing with it in that state? Typically you would convert the two portions separately using IConv with 'D' and 'MTS'...

Posted: Sat Dec 02, 2006 5:40 pm
by ray.wurlod
DateStage does not have an internal format for timestamp. It does for date and for time, but not for timestamp. You can, of course, convert a timestamp to the number of seconds since a zero point, but converting the date portion to days and the time portion to seconds then performing the requisite arithmetic.

But, as Craig asks, why?