Datetime.time readonly property



The Datetime.time property returns a string representing the "time part" of the moment, in the current local short format.

Example

-- get the current local date and time local dt = sys.Datetime() -- prints for example "12:00:01" print(dt.time)