com.camelspotting.jotl.udp
Class DateUtil
java.lang.Object
com.camelspotting.jotl.udp.DateUtil
public class DateUtil
- extends Object
This class is a conversion of the date conversion methods from the OpenTTD
codebase. File: src/date.cpp
Method Summary |
static org.joda.time.LocalDate |
convertDateToYMD(int date)
Method for parsing the date to something readable. |
static int |
convertYMDToDate(org.joda.time.LocalDate date)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
convertDateToYMD
public static org.joda.time.LocalDate convertDateToYMD(int date)
- Method for parsing the date to something readable.
- Parameters:
date
- the 32-bit date from OpenTTD
- Returns:
- an array containing day, month, year
convertYMDToDate
public static int convertYMDToDate(org.joda.time.LocalDate date)
Copyright © 2013. All Rights Reserved.