DateTimeUtils class

A utility class that provides functions related to date and time manipulation.

This class contains methods to get the current Unix timestamp and to convert an hour into a human-readable string based on the current locale.

Constructors

DateTimeUtils()

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited

Static Methods

getCurrentUnixTimestamp() int
Retrieves the current Unix timestamp in milliseconds.
hourAsHumanReadableString(BuildContext context, int numberToConvert) String
Converts an hour (in 24-hour format) into a human-readable string based on the locale.