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
ParseException
public static long unixTimestamp(String xmlDate) throws ParseException
ParseException
Copyright © 2019 Leiden University, NL. All rights reserved.