gmtime method

Tm gmtime(
  1. int timeValue
)

Converts a Unix timestamp (time_t) to a UTC Tm structure.

Implementation

Tm gmtime(int timeValue) {
  final dt = DateTime.fromMillisecondsSinceEpoch(timeValue * 1000, isUtc: true);
  return Tm.fromDateTime(dt);
}