Water 5-Common Data Types-Date and TimeClass for time objects
| Water Contract<class datetime.time
hour =opt=number.integer
minute =opt=number.integer
second =opt=number.integer
millisecond=opt=number.integer
base =opt
/> | |
See also: date
Returns an instance of time that contains the fields: hour, minute, second, millisecond.
Does not have fields year, month and day.
<time hour=13 minute=45 second=30 millisecond=0/>
 | <datetime.time hour=13 minute=45 second=30 millisecond=0/>
|
a wob
| Parameter key | Default value | Type |
| base | opt |
Normally the defaults for hour, minute, second and millisecond are all 0.
However you can supply a 'base' argument that will contain a new set of
defaults.
<time minute=59 base=<datetime 2005 12 05 2 30 45/>/>
 | <datetime.time hour=2 minute=59 second=45 millisecond=0/>
|
base can also be a string that is converted to a datetime using the datetime.from method.
<time base="9:30:45"/>
 | <datetime.time hour=9 minute=30 second=45 millisecond=0/>
|
Example: returns the current time in seconds from midnight, January 1, 1970
time.seconds
© Copyright 2007 Clear Methods, Inc.