Time Stamp

If you have questions about any aspect of QBasic programming, or would like to help fellow programmers solve their problems, check out this board!
Post Reply
User avatar
DDastardly71
Coder
Posts: 22
Joined: Fri Oct 17, 2008 6:56 pm
Location: U.S.A.

Time Stamp

Post by DDastardly71 »

Does anybody have a function that can generate a timestamp in seconds and back to date format with a variable date reference?

example:

seconds& = TimeStamp&(Month%, Day%, Year%, Hour%, Minutes%, Seconds%)
with a variable date of 1-1-1970

..and back to date format

dateformat$ = Seconds2DateFormat$(seconds&)
(i.e. mm/dd/yyyy hh:mm:ss)
Post Reply