FutureProg functions
now
DateTime now()
Contexts: computer function, computer program, standard futureprog
Returns the current real-world UTC date and time, equivalent to System.DateTime.UtcNow. Use this for real-time expiry or logging rather than in-game calendar time.
MudDateTime now(Calendar calendar)
Contexts: computer function, computer program, standard futureprog
Returns the current in-game date and time for a calendar using the calendar's feed clock and that clock's primary timezone. Returns the special Never mud datetime if the calendar or clock is null.
calendar: The in-game calendar to use. Its feed clock supplies the time when no clock is specified.
MudDateTime now(Calendar calendar, Clock clock)
Contexts: computer function, computer program, standard futureprog
Returns the current in-game date and time for a calendar and clock using the clock's primary timezone. Returns the special Never mud datetime if the calendar or resolved clock is null.
calendar: The in-game calendar whose current date is used.
clock: The in-game clock whose current time is used. If null, the calendar's feed clock is used.
MudDateTime now(Calendar calendar, Clock clock, Text timezone)
Contexts: computer function, computer program, standard futureprog
Returns the current in-game date and time for a calendar and clock, adjusted to the supplied timezone when it matches one of the clock's timezones. Returns the special Never mud datetime if the calendar or resolved clock is null.
calendar: The in-game calendar whose current date is used.
clock: The in-game clock whose current time is used. If null, the calendar's feed clock is used.
timezone: Optional timezone alias or ID from the supplied clock. If omitted or invalid, the clock's primary timezone is used.
Contexts: computer function, computer program, standard futureprog
Returns the current real-world UTC date and time, equivalent to System.DateTime.UtcNow. Use this for real-time expiry or logging rather than in-game calendar time.
MudDateTime now(Calendar calendar)
Contexts: computer function, computer program, standard futureprog
Returns the current in-game date and time for a calendar using the calendar's feed clock and that clock's primary timezone. Returns the special Never mud datetime if the calendar or clock is null.
calendar: The in-game calendar to use. Its feed clock supplies the time when no clock is specified.
MudDateTime now(Calendar calendar, Clock clock)
Contexts: computer function, computer program, standard futureprog
Returns the current in-game date and time for a calendar and clock using the clock's primary timezone. Returns the special Never mud datetime if the calendar or resolved clock is null.
calendar: The in-game calendar whose current date is used.
clock: The in-game clock whose current time is used. If null, the calendar's feed clock is used.
MudDateTime now(Calendar calendar, Clock clock, Text timezone)
Contexts: computer function, computer program, standard futureprog
Returns the current in-game date and time for a calendar and clock, adjusted to the supplied timezone when it matches one of the clock's timezones. Returns the special Never mud datetime if the calendar or resolved clock is null.
calendar: The in-game calendar whose current date is used.
clock: The in-game clock whose current time is used. If null, the calendar's feed clock is used.
timezone: Optional timezone alias or ID from the supplied clock. If omitted or invalid, the clock's primary timezone is used.