- normalizeDate
Normalizes a date (in milliseconds). Normalize, in our usage within Sunshine
means to convert a give
- getDayName
Given a day, returns just the name to use for that day. E.g "today", "tomorrow",
"Wednesday".
- getFriendlyDateString
Helper method to convert the database representation of the date into something
to display to users.
- elapsedDaysSinceEpoch
This method returns the number of days since the epoch (January 01, 1970, 12:00
Midnight UTC) in UTC
- getLocalMidnightFromNormalizedUtcDate
This method will return the local time midnight for the provided normalized UTC
date.
- getNormalizedUtcDateForToday
This method returns the number of milliseconds (UTC time) for today's date at
midnight in the local
- getDayNumber
This method returns the number of days since the epoch (January 01, 1970, 12:00
Midnight UTC) in UTC
- getLocalDateFromUTC
Since all dates from the database are in UTC, we must convert the given date (in
UTC timezone) to th
- getUTCDateFromLocal
Since all dates from the database are in UTC, we must convert the local date to
the date in UTC time
- isDateNormalized
In order to ensure consistent inserts into WeatherProvider, we check that dates
have been normalized