EventDateUtil class
Properties
hashCode
→ int
The hash code for this object.
no setter inherited
runtimeType
→ Type
A representation of the runtime type of the object.
no setter inherited
Methods
noSuchMethod (Invocation invocation )
→ dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString ()
→ String
A string representation of this object.
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.
databuckets_event_tracker 2.0.0