|
Project Wonder 2.0 | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object er.extensions.ERXTimestampUtilities
Collection of NSTimestamp
utilities.
Constructor Summary | |
ERXTimestampUtilities()
|
Method Summary | |
static NSTimestamp |
dateByAddingTime(NSTimestamp ts,
NSTimestamp t1)
Deprecated. use timestampByAddingTime instead |
static NSTimestamp |
distantFuture()
Deprecated. use NSTimestamp.DistantFuture instead |
static NSTimestamp |
distantPast()
Deprecated. use NSTimestamp.DistantPast instead |
static NSTimestamp |
epoch()
Utility method used to retrun the epoch, Jan 1st, 1970 |
static boolean |
isEarlierThan(NSTimestamp ts1,
NSTimestamp ts2)
Deprecated. use java.sql.Timestamp.before |
static boolean |
isLaterThan(NSTimestamp ts1,
NSTimestamp ts2)
Deprecated. use java.sql.Timestamp.after |
static NSTimestamp |
timestampByAddingTime(NSTimestamp ts,
NSTimestamp t1)
Adds the time (hours, minutes and seconds) from the second timestamp to the first timestamp. |
static NSTimestamp |
timestampForString(String defaultValue)
Calculates a timestamp given a string. |
static NSTimestamp |
today()
Timestamp representing today (12:00 AM). |
static NSTimestamp |
tomorrow()
Timestamp representing tomorrow (12:00 AM). |
static NSTimestamp |
unixDate(Number helpedNSNumber)
Converts an offset from the epoch into a timestamp. |
static Integer |
unixTimestamp(NSTimestamp ts)
Converts a timestamp into the equivalent unix offset from the epoch. |
static NSTimestamp |
yesterday()
Timestamp representing yesterday (12:00 AM). |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public ERXTimestampUtilities()
Method Detail |
public static NSTimestamp timestampForString(String defaultValue)
defaultValue
- string given above
public static NSTimestamp today()
public static NSTimestamp tomorrow()
public static NSTimestamp yesterday()
public static NSTimestamp distantPast()
NSTimestamp.DistantPast
instead
public static NSTimestamp distantFuture()
NSTimestamp.DistantFuture
instead
public static NSTimestamp dateByAddingTime(NSTimestamp ts, NSTimestamp t1)
timestampByAddingTime
instead
public static NSTimestamp timestampByAddingTime(NSTimestamp ts, NSTimestamp t1)
ts
- timestamp to have the time added too.t1
- timestamp to add the time from
public static boolean isEarlierThan(NSTimestamp ts1, NSTimestamp ts2)
java.sql.Timestamp.before instead.
ts1
- first timestampts2
- second timestamp
public static boolean isLaterThan(NSTimestamp ts1, NSTimestamp ts2)
java.sql.Timestamp.after instead.
ts1
- first timestampts2
- second timestamp
public static NSTimestamp epoch()
public static NSTimestamp unixDate(Number helpedNSNumber)
helpedNSNumber
- number offset from the epoch
public static Integer unixTimestamp(NSTimestamp ts)
ts
- timestamp to be converted
|
Last updated: Do, Dez 9, 2004 12:46 PM CET | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |