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