UserLand Software Home  |  Manila  |  Radio  |  Support  |  News

DocServer

Prev | Next | String Verbs > string.timeString

string.timeString

Syntax string.timeString (d = clock.now ())

Params d is an optional date parameter. The default is the current date.

Action Returns the time of day, using the format set by the system or the user for time values.

Returns The time portion of the date as a string, using the current settings for time formatting, which may be altered by the user.

Examples string.timeString ()

   » 10:16:33 PM

ch = string.getWordChar ();
string.setWordChar (':');
time = string.timeString ();
msg (string.nthWord (time, 2));
string.setWordChar (ch)

Displays in Main Window the number of minutes in the current time, assuming standard time format.

Notes Since the user can switch formats on the time, it may not be wise to rely on assumptions about the format. Use date.get in conjunction with clock.now for this purpose.

Before Frontier 6.1, this verb did not require a date parameter.

See Also string.dateString

clock.now

date.get

Prev | Next | String Verbs > string.timeString

Anonymization by Anonymouse.org ~ Adverts
Anonymouse better ad-free, faster and with encryption?
X