public class DateParser extends Object
| Modifier and Type | Field and Description |
|---|---|
static DateFormat |
defaultOrder |
static DateFormat |
humanReadable |
| Constructor and Description |
|---|
DateParser() |
| Modifier and Type | Method and Description |
|---|---|
static long |
mysqlDateToTimeStamp(String mysqlTime,
String timezone)
Parses MySQL date format to Unix Time Stamp.
|
static long |
secondsSince(String xmlDate) |
static long |
unixTimestamp(String xmlDate) |
public static final DateFormat humanReadable
public static final DateFormat defaultOrder
public static long mysqlDateToTimeStamp(String mysqlTime, String timezone) throws ParseException
mysqlTime - - A string representing the date field.timezone - - String representation of timezoneParseException - - Parse problempublic static long secondsSince(String xmlDate) throws ParseException
ParseExceptionpublic static long unixTimestamp(String xmlDate) throws ParseException
ParseExceptionCopyright © 2019 Leiden University, NL. All rights reserved.