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!

Moderators: Pete, Mods

User avatar
DDastardly71
Coder
Posts: 22
Joined: Fri Oct 17, 2008 6:56 pm
Location: U.S.A.

Time Stamp

Postby DDastardly71 » Thu Jun 04, 2009 10:04 am

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)

Return to “QBASIC and QB64 Questions & Answers”

Who is online

Users browsing this forum: No registered users and 4 guests