Start Time

Anything beyond the basics in using the LiveCode language. Share your handlers, functions and magic here.

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

Post Reply
SirWobbyTheFirst
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 246
Joined: Tue Jun 30, 2009 11:15 pm

Start Time

Post by SirWobbyTheFirst » Thu Sep 09, 2010 5:45 pm

Hi I have a function in my code which reports various details about the application such as the version and I was wondering how I could include a start time detail. I use the point when PreOpenStack is called to store the number of seconds into a local variable and I was wondering how I could convert that back into its original date and time at a later point and expose this in the function.

Any help would be most appreciated, thank you. :)

Mark
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 5150
Joined: Thu Feb 23, 2006 9:24 pm
Contact:

Re: Start Time

Post by Mark » Thu Sep 09, 2010 5:47 pm

mickpitkin92,

Code: Select all

convert myVarContainingSeconds to long date
Look up date and convert and related items in Rev's dictionary. You'll find plenty of information.

Best,

Mark
The biggest LiveCode group on Facebook: https://www.facebook.com/groups/livecode.developers
The book "Programming LiveCode for the Real Beginner"! Get it here! http://tinyurl.com/book-livecode

SirWobbyTheFirst
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 246
Joined: Tue Jun 30, 2009 11:15 pm

Re: Start Time

Post by SirWobbyTheFirst » Thu Sep 09, 2010 5:48 pm

Ah thank you Mark.

Post Reply