StringToMilliseconds (String function)

From m204wiki
Revision as of 15:23, 29 March 2011 by John (talk | contribs) (Created page with "{{Template:String:StringToMilliseconds subtitle}} <var>StringToMilliseconds</var> is an <var>intrinsic</var> function to convert a [[Datetime_string_format...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Convert string date/time to milliseconds since 1900 (String class)

[Introduced in Sirius Mods 7.8]


StringToMilliseconds is an intrinsic function to convert a date/time string to milliseconds since 1900.

Syntax

%milliseconds = string:StringToMilliseconds( format, [[CentSpan=] number]) Throws InvalidDateString

Syntax terms

%milliseconds The float variable to receive the computed time since 1900.
string The input date/time string.
format The format of the date/time string.
centspan See CENTSPAN_parameter.

Usage notes

Examples

See also

StringToSeconds_(String_function)

StringToDays_(String_function)