Convert Seconds

Got a LiveCode personal license? Are you a beginner, hobbyist or educator that's new to LiveCode? This forum is the place to go for help getting started. Welcome!

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller

Post Reply
Nakia
Posts: 425
Joined: Tue Feb 21, 2012 8:57 am

Convert Seconds

Post by Nakia » Fri Apr 05, 2013 12:29 am

Hi,

When I use the convert fuction on the seconds does it convert the time into GMT time (zero offset)??
Probably a dumb question...

FourthWorld
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 10052
Joined: Sat Apr 08, 2006 7:05 am
Contact:

Re: Convert Seconds

Post by FourthWorld » Fri Apr 05, 2013 1:07 am

Yes - from the Dictionary entry for "seconds":
The seconds function returns the total number of seconds since midnight, January 1, 1970 GMT.
Richard Gaskin
LiveCode development, training, and consulting services: Fourth World Systems
LiveCode Group on Facebook
LiveCode Group on LinkedIn

Nakia
Posts: 425
Joined: Tue Feb 21, 2012 8:57 am

Re: Convert Seconds

Post by Nakia » Fri Apr 05, 2013 1:16 am

Okay thanks..

Nakia
Posts: 425
Joined: Tue Feb 21, 2012 8:57 am

Re: Convert Seconds

Post by Nakia » Fri Apr 05, 2013 1:30 am

Cant seem to figure this out though..
Need to convert the seconds into a format like below:(short date and long time)

Example;

01/03/13 10:13:21 PM

with date being "Day/Month/Year"

FourthWorld
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 10052
Joined: Sat Apr 08, 2006 7:05 am
Contact:

Re: Convert Seconds

Post by FourthWorld » Fri Apr 05, 2013 2:21 am

See the convert command in the Dictionary.
Richard Gaskin
LiveCode development, training, and consulting services: Fourth World Systems
LiveCode Group on Facebook
LiveCode Group on LinkedIn

Nakia
Posts: 425
Joined: Tue Feb 21, 2012 8:57 am

Re: Convert Seconds

Post by Nakia » Fri Apr 05, 2013 2:29 am

Figured it out.

For some reason it didnt like the "&&" and needed "and" ????

Post Reply