|
Project Wonder 5.0 | |||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objecter.extensions.foundation.ERXTimestampUtilities
public class ERXTimestampUtilities
Collection of NSTimestamp
utilities.
Constructor Summary | |
---|---|
ERXTimestampUtilities()
|
Method Summary | |
---|---|
static com.webobjects.foundation.NSTimestamp |
dateByAddingTime(com.webobjects.foundation.NSTimestamp ts,
com.webobjects.foundation.NSTimestamp t1)
Deprecated. use timestampByAddingTime instead |
static com.webobjects.foundation.NSTimestamp |
distantFuture()
Deprecated. use NSTimestamp.DistantFuture instead |
static com.webobjects.foundation.NSTimestamp |
distantPast()
Deprecated. use NSTimestamp.DistantPast instead |
static com.webobjects.foundation.NSTimestamp |
epoch()
Utility method used to retrun the epoch, Jan 1st, 1970 |
static boolean |
isEarlierThan(com.webobjects.foundation.NSTimestamp ts1,
com.webobjects.foundation.NSTimestamp ts2)
Deprecated. use java.sql.Timestamp.before |
static boolean |
isLaterThan(com.webobjects.foundation.NSTimestamp ts1,
com.webobjects.foundation.NSTimestamp ts2)
Deprecated. use java.sql.Timestamp.after |
static java.lang.String |
simpleDateFormatForNSTimestampFormat(java.lang.String timestampFormatterPattern)
Returns the SimpleDateFormat pattern given an NSTimestampFormatter pattern. |
static com.webobjects.foundation.NSTimestamp |
timestampByAddingTime(com.webobjects.foundation.NSTimestamp ts,
com.webobjects.foundation.NSTimestamp t1)
Adds the time (hours, minutes and seconds) from the second timestamp to the first timestamp. |
static com.webobjects.foundation.NSTimestamp |
timestampForString(java.lang.String defaultValue)
Calculates a timestamp given a string. |
static com.webobjects.foundation.NSTimestamp |
today()
Timestamp representing today (12:00 AM). |
static com.webobjects.foundation.NSTimestamp |
tomorrow()
Timestamp representing tomorrow (12:00 AM). |
static com.webobjects.foundation.NSTimestamp |
unixDate(java.lang.Number helpedNSNumber)
Converts an offset from the epoch into a timestamp. |
static java.lang.Integer |
unixTimestamp(com.webobjects.foundation.NSTimestamp ts)
Converts a timestamp into the equivalent unix offset from the epoch. |
static com.webobjects.foundation.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 com.webobjects.foundation.NSTimestamp timestampForString(java.lang.String defaultValue)
defaultValue
- string given above
public static com.webobjects.foundation.NSTimestamp today()
public static com.webobjects.foundation.NSTimestamp tomorrow()
public static com.webobjects.foundation.NSTimestamp yesterday()
public static com.webobjects.foundation.NSTimestamp distantPast()
NSTimestamp.DistantPast
instead
public static com.webobjects.foundation.NSTimestamp distantFuture()
NSTimestamp.DistantFuture
instead
public static com.webobjects.foundation.NSTimestamp dateByAddingTime(com.webobjects.foundation.NSTimestamp ts, com.webobjects.foundation.NSTimestamp t1)
timestampByAddingTime
instead
public static com.webobjects.foundation.NSTimestamp timestampByAddingTime(com.webobjects.foundation.NSTimestamp ts, com.webobjects.foundation.NSTimestamp t1)
ts
- timestamp to have the time added too.t1
- timestamp to add the time from
public static boolean isEarlierThan(com.webobjects.foundation.NSTimestamp ts1, com.webobjects.foundation.NSTimestamp ts2)
java.sql.Timestamp.before instead.
ts1
- first timestampts2
- second timestamp
public static boolean isLaterThan(com.webobjects.foundation.NSTimestamp ts1, com.webobjects.foundation.NSTimestamp ts2)
java.sql.Timestamp.after instead.
ts1
- first timestampts2
- second timestamp
public static com.webobjects.foundation.NSTimestamp epoch()
public static com.webobjects.foundation.NSTimestamp unixDate(java.lang.Number helpedNSNumber)
helpedNSNumber
- number offset from the epoch
public static java.lang.Integer unixTimestamp(com.webobjects.foundation.NSTimestamp ts)
ts
- timestamp to be converted
public static java.lang.String simpleDateFormatForNSTimestampFormat(java.lang.String timestampFormatterPattern)
timestampFormatterPattern
- the NSTimestampFormatter pattern
|
Last updated: Tue, Feb 21, 2017 05:45 PM CET | |||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |