converting Date and time to seconds
Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller
converting Date and time to seconds
Hello,
I've been searching quite a bit and haven't been able to figure out the 'livecode' way to convert this string to seconds..
1/1/08 3:06 AM
Any ideas?
Thanks!
I've been searching quite a bit and haven't been able to figure out the 'livecode' way to convert this string to seconds..
1/1/08 3:06 AM
Any ideas?
Thanks!
Re: converting Date and time to seconds
Take a look at "convert" in the dictionary.
Simon
Simon
I used to be a newbie but then I learned how to spell teh correctly and now I'm a noob!
Re: converting Date and time to seconds
Thanks for the response.
I tried using something like this:
convert tNewDateTo from date and long time to seconds
To no avail.
Converting the date is easy. But suppose you want to do a compare on not only the date but the time as well?
I thought perhaps you could convert both the date to seconds and then the time to seconds and add both but that was uneventful
as well.
I tried using something like this:
convert tNewDateTo from date and long time to seconds
To no avail.
Converting the date is easy. But suppose you want to do a compare on not only the date but the time as well?
I thought perhaps you could convert both the date to seconds and then the time to seconds and add both but that was uneventful
as well.
Re: converting Date and time to seconds
hmmm
This is from the dictionary examples
This is from the dictionary examples
Simonconvert the date && the time to seconds
I used to be a newbie but then I learned how to spell teh correctly and now I'm a noob!
Re: converting Date and time to seconds
Code: Select all
on mouseUp
put "1/1/08 3:06 AM" into theTime
convert theTime to seconds
put theTime
end mouseUp
Re: converting Date and time to seconds
Thanks, Guys!
My syntax was incorrect thus causing my issue.
I appreciate all of the responses
My syntax was incorrect thus causing my issue.
I appreciate all of the responses
