|
That makes sence. I was using the website mentioned ( http://www.onlineconversion.com/unix_time.htm ) and playing around with some dates, both present and past ones. I was not thinking that the way the unix time stamp is used for "current" times. ---------------------------- Bryan Dietz midrange-l-bounces@xxxxxxxxxxxx wrote on 06/01/2004 04:35:57 AM: > > Hi Bryan, > > > > > How would this program work for date before 01/01/1970. They are negative > > numbers. > > > > I don't think I've ever seen a unix-date from before 1970?! Normally, > these dates are used for things like the system time, the last time a file > was updated, or created, or when a log entry is created. Normally these > can't be before 1970, since the operating system that created the date > wasn't around before 1970! > > Obviously for dates like birth dates, etc, that can be older than this, > you'll want to use a different date format. Especially since a 32-bit > integer is very limited in range, you can only represent dates from > December 13, 1901 to Jan 19, 2038. > > Still, if you wanted to, for some reason, use this type of code with > negative numbers, you could do so by adding an "if" to the code. If the > number is less than 0, convert it to positive (0 - myvar) and then use the > SUBDUR op-code instead of the ADDDUR opcode. > >
As an Amazon Associate we earn from qualifying purchases.
This mailing list archive is Copyright 1997-2025 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].
Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.