Unix Timestamp

Jean-Pierre A. Radley appl at jpr.com
Sat Dec 28 17:08:05 PST 2013


Jean-Pierre A. Radley propounded (on Sat, Dec 28, 2013 at 08:03:09PM -0500):
| Nancy Palmquist propounded (on Thu, Dec 26, 2013 at 03:16:30PM -0500):
| | 
| | Has any clever filepro programmer, written a routine to convert a Unix 
| | Timestamp to a date/time and also to convert a date/time to a Unix 
| | timestamp.  If it matters, this is running on SCO Openserver, with 
| | filepro 5.0 or later (can't remember if they had 5.6 or 5.0 right off 
| | the top of my head.)
| | 
| | I find I am working on a project where one customer tracks by Unix 
| | timestamp and another tracks by Date/Time and they need to exchange data.
| | 
| | I understand the Unix timestamp meaning but did not want to reinvent the 
| | programming to translate, if someone has worked it out already.
| | 
| 
| 
| I've got a little binary here, ctime:
| 
| 	# ctime 1388278701
| 	Sat Dec 28 19:58:21 2013
| 
| Can't append binaries here, but I'll CC it to you.
| 
| As for the other way, don't recall if I have anything here, I'll look.
| 

Ah, Jay reminded me.  I've got GNU variants of the commands here, so

	# gdate +%s
	1388279155
-- 
JP


More information about the Filepro-list mailing list