public final class BroadwickConstants extends Object
Modifier and Type | Field and Description |
---|---|
private static org.joda.time.DateTime |
ZERO_DATE |
Modifier | Constructor and Description |
---|---|
private |
BroadwickConstants()
Utility constructor (hidden).
|
Modifier and Type | Method and Description |
---|---|
static int |
getDate(org.joda.time.DateTime date)
Convert a date object to an integer (number of days from a fixed start date, here 1/1/1900).
|
static int |
getDate(String date,
String dateFormat)
Convert a date object to an integer (number of days from a fixed start date, here 1/1/1900).
|
static org.joda.time.DateTime |
toDate(int date)
Convert an integer (number of days from a fixed start date, here 1/1/1900) to a DateTime object.
|
public static int getDate(org.joda.time.DateTime date)
date
- the date object we are converting.public static org.joda.time.DateTime toDate(int date)
date
- the integer date offset.public static int getDate(String date, String dateFormat)
date
- the date object we are converting.dateFormat
- the format the date is in when doing the conversion.Copyright © 2015 University of Glasgow. All rights reserved.