FutureProg functions

todate

Date/Timecomputer function, computer program, standard futureprog

Overload 1

todate overload 1

MudDateTime todate(Calendar calendar, Clock clock, Text text)
Available in
  • 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.
ParameterTypeDescription
calendar Calendar The in-game calendar to use.
clock Clock The in-game clock to use, or the clock name where this function accepts text.
text Text The text to parse.

Overload 2

todate overload 2

DateTime todate(Text dateText, Text format)
Available in
  • 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.
ParameterTypeDescription
dateText Text The real-world date text to parse.
format Text A .NET date/time format string used to format or parse the date.