|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectplay.libs.Time
public class Time
Time utilities.
| Nested Class Summary | |
|---|---|
static class |
Time.CronExpression
Thanks to Quartz project, https://quartz.dev.java.net |
| Constructor Summary | |
|---|---|
Time()
|
|
| Method Summary | |
|---|---|
static long |
cronInterval(java.lang.String cron)
Computes the number of milliseconds between the next valid date and the one after. |
static long |
cronInterval(java.lang.String cron,
java.util.Date date)
Compute the number of milliseconds between the next valid date and the one after. |
static java.util.Date |
parseCRONExpression(java.lang.String cron)
Parses a CRON expression. |
static int |
parseDuration(java.lang.String duration)
Parses a duration. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Time()
| Method Detail |
|---|
public static int parseDuration(java.lang.String duration)
duration - a quantity of time, such as 3h, 2mn, 7s
public static java.util.Date parseCRONExpression(java.lang.String cron)
cron - the CRON String
Date that satisfies the expressionpublic static long cronInterval(java.lang.String cron)
cron - the CRON String
public static long cronInterval(java.lang.String cron,
java.util.Date date)
cron - the CRON Stringdate - the date to start search
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||