Error getting tags :
error 404Error getting tags :
error 404 time | revDocs | RunRev
Welcome Guest (Log in)
Product Edition
Version
time
Basics
Expander triangle
Type
Function
Syntax
the [long | abbr[rev[iated]] | short] [english | system ] time time()
Introduced
1.0
Changed
1.1
Environment
Desktop, Web and Server
Platform Support
MacOS,Mac OS X,Windows,Linux
Security
None required
Summary
Returns the current time.
Examples

put the time into the lastModifiedTime of this card
set the label of button "Clock" to the short system time

Additional Comments
Expander triangle

Use the time function to display the current time to the user, or to store the time for later use.

Value:

If the useSystemDate property is set to true or if you specify the system time, the times returned by the time function are formatted according to the user's system preferences.

If the useSystemDate is false or if you specify the english time, the times are in the format described below:

The time form returns the hour and minute separated by a colon, a space, and "AM" or "PM".

The short time form returns the same value as the time form.

The abbreviated time form returns the same value as the time form.

The long time form returns the hour, minute, and second separated by colons, a space, and "AM" or "PM".

Comments:

If the twelveHourTime property is set to false, the value returned by the time function does not include "AM" or "PM".

The format of the system time forms is set by the Date & Time control panel (on Mac OS systems), the Date control panel (on Windows systems), or the LANG environment variable (on Unix systems).

Changes to Revolution:

The ability to use the time format preferred by the user was introduced in version 1.1. In previous versions, the time function, along with the date function, consistently used the standard U.S. format, even if the operating system's settings specified another language or time format.

User Comments
Expander triangle