| com.ziclix.python.sql.DateFactory
All known Subclasses: com.ziclix.python.sql.JavaDateFactory,
DateFactory | public interface DateFactory (Code) | | Provide an extensible way to create dates for zxJDBC.
author: brian zimmer author: last revised by $Author: bzimmer $ version: $Revision: 2414 $ |
Method Summary | |
public PyObject | Date(int year, int month, int day) This function constructs an object holding a date value. | public PyObject | DateFromTicks(long ticks) This function constructs an object holding a date value from the
given ticks value (number of seconds since the epoch; see the
documentation of the standard Python time module for details). | public PyObject | Time(int hour, int minute, int second) This function constructs an object holding a time value. | public PyObject | TimeFromTicks(long ticks) This function constructs an object holding a time value from the
given ticks value (number of seconds since the epoch; see the
documentation of the standard Python time module for details). | public PyObject | Timestamp(int year, int month, int day, int hour, int minute, int second) This function constructs an object holding a time stamp value. | public PyObject | TimestampFromTicks(long ticks) This function constructs an object holding a time stamp value from
the given ticks value (number of seconds since the epoch; see the
documentation of the standard Python time module for details). |
Date | public PyObject Date(int year, int month, int day)(Code) | | This function constructs an object holding a date value.
Parameters: year - Parameters: month - Parameters: day - PyObject |
DateFromTicks | public PyObject DateFromTicks(long ticks)(Code) | | This function constructs an object holding a date value from the
given ticks value (number of seconds since the epoch; see the
documentation of the standard Python time module for details).
Note: The DB API 2.0 spec calls for time in seconds since the epoch
while the Java Date object returns time in milliseconds since the epoch.
This module adheres to the python API and will therefore use time in
seconds rather than milliseconds, so adjust any Java code accordingly.
Parameters: ticks - number of seconds since the epoch PyObject |
Time | public PyObject Time(int hour, int minute, int second)(Code) | | This function constructs an object holding a time value.
Parameters: hour - Parameters: minute - Parameters: second - PyObject |
TimeFromTicks | public PyObject TimeFromTicks(long ticks)(Code) | | This function constructs an object holding a time value from the
given ticks value (number of seconds since the epoch; see the
documentation of the standard Python time module for details).
Note: The DB API 2.0 spec calls for time in seconds since the epoch
while the Java Date object returns time in milliseconds since the epoch.
This module adheres to the python API and will therefore use time in
seconds rather than milliseconds, so adjust any Java code accordingly.
Parameters: ticks - number of seconds since the epoch PyObject |
Timestamp | public PyObject Timestamp(int year, int month, int day, int hour, int minute, int second)(Code) | | This function constructs an object holding a time stamp value.
Parameters: year - Parameters: month - Parameters: day - Parameters: hour - Parameters: minute - Parameters: second - PyObject |
TimestampFromTicks | public PyObject TimestampFromTicks(long ticks)(Code) | | This function constructs an object holding a time stamp value from
the given ticks value (number of seconds since the epoch; see the
documentation of the standard Python time module for details).
Note: The DB API 2.0 spec calls for time in seconds since the epoch
while the Java Date object returns time in milliseconds since the epoch.
This module adheres to the python API and will therefore use time in
seconds rather than milliseconds, so adjust any Java code accordingly.
Parameters: ticks - number of seconds since the epoch PyObject |
|
|