tripkit-android / com.skedgo.tripkit.common.util / TimeUtils

TimeUtils

open class TimeUtils

Types

Name Summary
Duration According to RFC2445, durations are like this: WEEKS
InMillis class InMillis
InSeconds class InSeconds

Constructors

Name Summary
<init> TimeUtils()

Properties

Name Summary
WHEN_TELEPORTER_EXISTS static var WHEN_TELEPORTER_EXISTS:Long

Functions

Name Summary
getCurrentJulianDay open static fun getCurrentJulianDay():Int
getCurrentMillis open static fun getCurrentMillis():Long
getDurationInDaysHoursMins The reason to have days is to prepare for interstate tripopen static fun getDurationInDaysHoursMins(seconds:Int):String!
getDurationInHoursMins open static fun getDurationInHoursMins(seconds:Int):String!
getDurationWithDaysInIt open static fun getDurationWithDaysInIt(seconds:Int):String!
getJulianDay open static fun getJulianDay(t: Time!):Int
open static fun getJulianDay(millis:Long):Int
getLastSecondOfPreviousDayAsTime open static fun getLastSecondOfPreviousDayAsTime(startsSecs:Long, timeZoneString:String!): Time!
getMillisFrom open static fun getMillisFrom(am_pm:String!, hour:Int, minute:Int, sec:Int):Long
getTimeInDay *open static fun getTimeInDay(millis:Long):String!
getTimeZoneDisplayName open static fun getTimeZoneDisplayName(timezoneId:String!, timeInSecs:Long, locale:Locale!):String?