static bool isExpired(int expiry) { return DateTime.now().toUtc().compareTo( DateTime.fromMillisecondsSinceEpoch(toMilliseconds(expiry)), ) >= 0; }