StaticformatStaticgetReturns the current time as a Date object. This method formats the current time to a string and then converts it back to a Date object.
Optionallocale: null | stringOptionaltimeZone: null | stringStaticgetReturns the current time in a human-readable format.
This format is DD/MM/YYYY HH:MM:SS, which is suitable for display to users.
Optionallocale: null | stringOptionaltimeZone: null | stringStaticgetReturns the current time formatted as a string suitable for saving.
This format is YYYY-MM-DDTHH-MM-SSZ, which is useful for file naming or database storage.
Optionallocale: null | stringOptionaltimeZone: null | stringStaticgetReturns the current time formatted as a string.
This format is YYYY-MM-DDTHH:MM:SSZ, which is useful for logging or displaying the current time.
Optionallocale: null | stringOptionaltimeZone: null | stringStaticgetGets the system's default locale
StaticgetGets both system locale and timezone
StaticgetGets the system's default timezone
StaticgetReturns the current time formatted for logging.
This format is DD/MM/YYYY:HH:MM:SS, which is useful for log entries.
Optionallocale: null | stringOptionaltimeZone: null | string
Time utility class for handling date and time formatting. This class provides methods to format dates in various ways, including human-readable formats, ISO strings, and formats suitable for logging or saving to a database.