net.sf.farrago.syslib
Class FarragoConvertDatetimeUDR
java.lang.Object
net.sf.farrago.syslib.FarragoConvertDatetimeUDR
public abstract class FarragoConvertDatetimeUDR
- extends Object
Moved over from luciddb applib datetime package for general use. Date
conversion, based on standard Java libraries
- Version:
- $Id: //open/dev/farrago/src/net/sf/farrago/syslib/FarragoConvertDatetimeUDR.java#10 $
- Author:
- Elizabeth Lin
Method Summary |
static Date |
char_to_date(String format,
String dateString)
|
static Time |
char_to_time(String format,
String timeString)
|
static Timestamp |
char_to_timestamp(String format,
String timestampString)
|
private static long |
charToDateHelper(String format,
String s)
Converts a string to a standard Java date, expressed in milliseconds |
static String |
date_to_char(String format,
Date d)
|
protected static String |
date_to_char(String format,
Date d,
boolean directCall)
|
private static DateFormat |
getDateFormat(String format,
FarragoConvertDatetimeUDR.Type caller)
Gets a date formatter, caching it in the Farrago runtime context |
private static long |
getPartialWeeks(String format,
String s,
DateFormat df)
|
static String |
time_to_char(String format,
Time t)
|
protected static String |
time_to_char(String format,
Time t,
boolean directCall)
|
static String |
timestamp_to_char(String format,
Timestamp ts)
|
protected static String |
timestamp_to_char(String format,
Timestamp ts,
boolean directCall)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
FarragoConvertDatetimeUDR
public FarragoConvertDatetimeUDR()
char_to_date
public static Date char_to_date(String format,
String dateString)
char_to_time
public static Time char_to_time(String format,
String timeString)
char_to_timestamp
public static Timestamp char_to_timestamp(String format,
String timestampString)
date_to_char
public static String date_to_char(String format,
Date d)
time_to_char
public static String time_to_char(String format,
Time t)
timestamp_to_char
public static String timestamp_to_char(String format,
Timestamp ts)
date_to_char
protected static String date_to_char(String format,
Date d,
boolean directCall)
time_to_char
protected static String time_to_char(String format,
Time t,
boolean directCall)
timestamp_to_char
protected static String timestamp_to_char(String format,
Timestamp ts,
boolean directCall)
charToDateHelper
private static long charToDateHelper(String format,
String s)
- Converts a string to a standard Java date, expressed in milliseconds
getPartialWeeks
private static long getPartialWeeks(String format,
String s,
DateFormat df)
getDateFormat
private static DateFormat getDateFormat(String format,
FarragoConvertDatetimeUDR.Type caller)
- Gets a date formatter, caching it in the Farrago runtime context