FutureProg functions
todate
MudDateTime todate(Calendar calendar, Clock clock, Text text)
Contexts: computer function, computer program, standard futureprog
Parses text into an in-game mud datetime using the supplied calendar and clock. Returns the special Never mud datetime when the calendar is null, the text is empty, or parsing fails.
calendar: The in-game calendar to use.
clock: The in-game clock to use, or the clock name where this function accepts text.
text: The text to parse.
DateTime todate(Text dateText, Text format)
Contexts: computer function, computer program, standard futureprog
Parses real-world date text using a .NET format mask and invariant culture. Returns an error if the text does not match the supplied format.
dateText: The real-world date text to parse.
format: A .NET date/time format string used to format or parse the date.
Contexts: computer function, computer program, standard futureprog
Parses text into an in-game mud datetime using the supplied calendar and clock. Returns the special Never mud datetime when the calendar is null, the text is empty, or parsing fails.
calendar: The in-game calendar to use.
clock: The in-game clock to use, or the clock name where this function accepts text.
text: The text to parse.
DateTime todate(Text dateText, Text format)
Contexts: computer function, computer program, standard futureprog
Parses real-world date text using a .NET format mask and invariant culture. Returns an error if the text does not match the supplied format.
dateText: The real-world date text to parse.
format: A .NET date/time format string used to format or parse the date.