isBefore method
Returns true if this ZonedDateTime is before other
.
// 2023-04-20T12:00+08:00[Asia/Singapore]
final singapore = ZonedDateTime('Asia/Singapore', 2023, 4, 20, 12);
// 2023-04-20T12:00+01:00[Europe/London]
final london = ZonedDateTime('Europe/London', 2023, 4, 20, 12);
print(singapore.isBefore(london)); // true
Implementation
bool isBefore(ZonedDateTime other) => epochMicroseconds < other.epochMicroseconds;