EventDateUtil class

Constructors

EventDateUtil()

Properties

hashCode → int
The hash code for this object.
no setterinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited

Static Methods

calculateRetentionDate(int installDayUtc, int nowUtcMillis) → int
Calculates retention days using UTC calendar date difference. This counts the number of calendar days between install and now, not the number of 24-hour periods.
calculateRetentionHour(int installTimeMillis, int nowUtcMillis) → int
Calculates retention hours between install time (milliseconds) and nowUtcMillis.
calculateRetentionMinute(int installTimeMillis, int nowUtcMillis) → int
Calculates retention minutes between install time (milliseconds) and nowUtcMillis.
getLocalDayOfWeek(int utcTimestampMillis, int timezoneOffsetSeconds) → String
Returns local day of week string with adjusted index: "0 - Sunday", etc.
getLocalHour(int utcTimestampMillis, int timezoneOffsetSeconds) → int
Returns local hour in 24h format (0-23).
getLocalHourMinute(int utcTimestampMillis, int timezoneOffsetSeconds) → int
Returns combined hour and minute as integer HHmm (e.g. 930 for 9:30).
getUtcDate(int utcTimestampMillis) → int
Converts UTC timestamp (milliseconds) to an int date in yyyyMMdd format.

Constants

dayOfWeek → const Map<int, String>