Inverse CTOS TTOS function

Meeting place for R&R customers and clients to share tips and ideas. Post your questions, messages or problems here.
Post Reply
Josh_Gervey_(Guest)
Posts: 1
Joined: Tue Oct 10, 2017 12:44 pm

Inverse CTOS TTOS function

Post by Josh_Gervey_(Guest) » Mon Dec 04, 2006 1:09 pm

Help!____Am looking to convert a date indicator stored in seconds since 1/1/1970 to a date format. The CTOS and TTOS seem to allow you to go from a date to seconds and I need to do the reverse. Has anyone come across this or created a function for this purpose?____Thanks.

kfleming
Posts: 5795
Joined: Tue Oct 10, 2017 12:44 pm

=> RE: Inverse CTOS TTOS function

Post by kfleming » Tue Dec 12, 2006 10:03 am

You could convert the seconds to days by dividing by 86400 (the number of seconds in a day) and then use the ADDDAYS() function to add that number of days to the start date of 01/01/1970.____Kathleen__R&R Support

Post Reply