> Does Lingo have any function for getting UTC?
> More specifically, getting the time in seconds
> since 1/1/1970 ?
>
> It's a pretty standard function in other languages
> but I'm not sure about lingo.
I think I found what you're looking for: It's a new director 8 feature that
works with the date object.
The next paragraphs are copied directly from the lingo dictionary (The
"seconds" entry and the "date" entry):
<Snip>
seconds:
dateObject.seconds
Description:
Property; gives the seconds passed since midnight of the given date object.
Only the systemDate , creationDate, and modifiedDate have a default seconds
value. You must specify a seconds value for date objects that you create.
This property can be used with the creationDate and the modifiedDate for
source control purposes.
Example:
These staments display the seconds since midnight on the authoring computer:
mydate = the systemdate
put mydate.seconds
-- 1233
date() (formats):
date(ISOFormatString)
date(ISOFormatInteger)
date(ISOFormatIntegerYear, ISOFormatIntegerMonth, ISOFormatIntegerDay)
Description Function and data type; creates a standard, formatted date
object instance for use with other date object instances in arithmetic
operations and for use in manipulating dates across platforms and in
international formats.
When creating the date, use four digits for the year, two digits for the
month, and two digits for the day. The following expressions are equivalent:
integer: set vacationStart = date(19980618)
string: set vacationStart = date("19980618")
comma separated: set vacationStart = date(1998, 06, 18)
Addition and subtraction operations on the date are interpreted as the
addition and subtraction of days.
The individual properties of the date object instance returned are:
#year Integer representing the year
#month Integer representing the month of the year
#day Integer representing the day of the month
Example These statements create and determine the number of days between two
dates:
myBirthDay = date(19650712)
yourBirthDay = date(19450529)
put "There are" && abs(yourBirthday - myBirthday) && "days between our
birthdays."
Example These statements access an individual property of a date:
myBirthDay = date(19650712)
put "I was born in month number"&&myBirthday.month
</Snip>
Is this what you were looking for?
Regards,
Karina Steffens,
Lead Programmer
Martello Media Ltd.
4 Islington Avenue
Sandycove
Co. Dublin
Tel: +353 1 2844668
Fax: +353 1 2803195
http://www.martellomm.ie
[To remove yourself from this list, or to change to digest mode, go to
http://www.penworks.com/LUJ/lingo-l.cgi To post messages to the list,
email [EMAIL PROTECTED] (Problems, email [EMAIL PROTECTED])
Lingo-L is for learning and helping with programming Lingo. Thanks!]