CurrentDateTime


Returns current date and time in multiple formats.

Applications:Combines the most commonly used date and time filters into one tool.

Syntax

C++
Python
 
def CurrentDateTime(
	outDateTime: DateTime,
	/,
	*,
	inTimezone: TimezoneKind = TimezoneKind.UTC,
	inFormat: str = "\"%x %X\"",
	inDecimalPlaces: int = 0,
	inLocale: str = ""
)
-> (
	outTimestamp: Timestamp,
	outString: str
)

Parameters

Name Type Range Default Description
Input value inTimezone TimezoneKind TimezoneKind.UTC Timezone to convert to
Input value inFormat str "\"%x %X\"" Date and time format to use
Input value inDecimalPlaces int 0 - 9 0 Number of decimal places to use when printing seconds
Input value inLocale str "" Locale to use when converting
Output value outTimestamp Timestamp Current UTC timestamp
Output value outDateTime DateTime Date and time in selected timezone
Output value outString str Date and time converted to string