TimeUnitExt extension
TimeUnit extension methods.
- on
Methods
-
formatTimestamp(
DateTime dateTime) → int - Format DateTime to timestamp.
-
parseTimestamp(
String timestamp, {bool isUtc = false}) → DateTime - Parse timestamp to DateTime.
-
tryParseTimestamp(
String timestamp, {bool isUtc = false}) → DateTime? - Try to parse timestamp to DateTime.