public final class TimeUtil extends Object
| Modifier and Type | Method and Description |
|---|---|
static int |
getCurrentDate()
Get current date as integer
|
static int |
getCurrentTime()
Get current time as integer
|
static String |
getDurationBreakdown(long millis)
Convert a millisecond duration to a string format
|
static Date |
getToday() |
static Date |
getTomorrow() |
static Date |
getYesterday() |
static void |
main(String[] args) |
static int |
timeToInt(String time)
Parses time values such as 09:16:45 from gtfs to an integer values
represented in seconds.
|
public static int timeToInt(String time)
time - the time to parsepublic static int getCurrentDate()
public static int getCurrentTime()
public static void main(String[] args)
public static String getDurationBreakdown(long millis)
millis - A duration to convert to a string formpublic static Date getToday()
public static Date getTomorrow()
public static Date getYesterday()
Copyright © 2017. All rights reserved.