Page 1 of 1

convert unix timestamp to Texis date

Posted: Thu Mar 13, 2014 1:04 pm
by aitchon
How would I go about converting a date in unix time to a date in Texis?

convert unix timestamp to Texis date

Posted: Thu Mar 13, 2014 1:57 pm
by Kai
Use convert(). Depending on the date format, that should do it. Try <$texisTime = (convert($unixTimeString, 'date' ))>.

convert unix timestamp to Texis date

Posted: Thu Mar 13, 2014 2:00 pm
by aitchon
Getting an "out of range" error:

<$unixtimestamp="1374503628">
<$convdate=(convert($unixtimestamp, 'date'))>

convert unix timestamp to Texis date

Posted: Thu Mar 13, 2014 2:10 pm
by mark
Try converting to long first
convert(convert($unixtimestamp, 'long' ), 'date' )

convert unix timestamp to Texis date

Posted: Thu Mar 13, 2014 2:14 pm
by aitchon
Thanks, that worked.