summaryrefslogtreecommitdiff
path: root/projects/net.wotonomy.foundation/src/main/java/net/wotonomy/foundation/NSTimestamp.java
diff options
context:
space:
mode:
Diffstat (limited to 'projects/net.wotonomy.foundation/src/main/java/net/wotonomy/foundation/NSTimestamp.java')
-rw-r--r--projects/net.wotonomy.foundation/src/main/java/net/wotonomy/foundation/NSTimestamp.java299
1 files changed, 147 insertions, 152 deletions
diff --git a/projects/net.wotonomy.foundation/src/main/java/net/wotonomy/foundation/NSTimestamp.java b/projects/net.wotonomy.foundation/src/main/java/net/wotonomy/foundation/NSTimestamp.java
index bd246e0..03590f2 100644
--- a/projects/net.wotonomy.foundation/src/main/java/net/wotonomy/foundation/NSTimestamp.java
+++ b/projects/net.wotonomy.foundation/src/main/java/net/wotonomy/foundation/NSTimestamp.java
@@ -26,260 +26,255 @@ import java.util.Date;
import java.util.TimeZone;
/**
-* A channel to the database, representing a communication
-* stream within a context of an adaptor.
-*
-* @author cgruber@israfil.net
-* @author $Author: cgruber $
-* @version $Revision: 892 $
-*/
+ * A channel to the database, representing a communication stream within a
+ * context of an adaptor.
+ *
+ * @author cgruber@israfil.net
+ * @author $Author: cgruber $
+ * @version $Revision: 892 $
+ */
-public class NSTimestamp extends Timestamp
- implements NSCoding {
+public class NSTimestamp extends Timestamp implements NSCoding {
- public static class IntRef {
+ public static class IntRef {
- public int value = 0;
+ public int value = 0;
- public String toString() {
- return getClass().getName() + " < value = " + value + " >";
- }
+ public String toString() {
+ return getClass().getName() + " < value = " + value + " >";
+ }
- public IntRef() {
- }
- }
+ public IntRef() {
+ }
+ }
+ public static final NSTimestamp DistantPast = new NSTimestamp(0xffffc77f2e9b6800L);
+ public static final NSTimestamp DistantFuture = new NSTimestamp(0x7fffffffffffffffL);
- public static final NSTimestamp DistantPast = new NSTimestamp(0xffffc77f2e9b6800L);
- public static final NSTimestamp DistantFuture = new NSTimestamp(0x7fffffffffffffffL);
- public static long currentTimeIntervalSinceReferenceDate() {
- return System.currentTimeMillis() / 1000L;
- }
+ public static long currentTimeIntervalSinceReferenceDate() {
+ return System.currentTimeMillis() / 1000L;
+ }
- public static NSTimestamp distantFuture() {
- return DistantFuture;
- }
+ public static NSTimestamp distantFuture() {
+ return DistantFuture;
+ }
- public static NSTimestamp distantPast() {
- return DistantPast;
- }
+ public static NSTimestamp distantPast() {
+ return DistantPast;
+ }
- public static long millisecondsToTimeInterval(long l) {
- return l / 1000L;
- }
+ public static long millisecondsToTimeInterval(long l) {
+ return l / 1000L;
+ }
- public static long timeIntervalToMilliseconds(long l) {
- return l * 1000L;
- }
+ public static long timeIntervalToMilliseconds(long l) {
+ return l * 1000L;
+ }
- public Class classForCoder() {
- return getClass();
- }
+ public Class classForCoder() {
+ return getClass();
+ }
- public static Object decodeObject(NSCoder nscoder) {
+ public static Object decodeObject(NSCoder nscoder) {
throw new UnsupportedOperationException("Not Yet Implemented");
- }
+ }
- public void encodeWithCoder(NSCoder nscoder) {
+ public void encodeWithCoder(NSCoder nscoder) {
throw new UnsupportedOperationException("Not Yet Implemented");
- }
+ }
- public NSTimestamp() {
- super(0);
+ public NSTimestamp() {
+ super(0);
throw new UnsupportedOperationException("Not Yet Implemented");
- }
+ }
- public NSTimestamp(long l) {
- super(l);
+ public NSTimestamp(long l) {
+ super(l);
throw new UnsupportedOperationException("Not Yet Implemented");
- }
+ }
- public NSTimestamp(long l, int i) {
- super(0);
+ public NSTimestamp(long l, int i) {
+ super(0);
throw new UnsupportedOperationException("Not Yet Implemented");
- }
+ }
- public NSTimestamp(long l, NSTimestamp nstimestamp) {
- super(0);
+ public NSTimestamp(long l, NSTimestamp nstimestamp) {
+ super(0);
throw new UnsupportedOperationException("Not Yet Implemented");
- }
+ }
- public NSTimestamp(long l, TimeZone timezone) {
- super(0);
+ public NSTimestamp(long l, TimeZone timezone) {
+ super(0);
throw new UnsupportedOperationException("Not Yet Implemented");
- }
+ }
- public NSTimestamp(long l, int i, TimeZone timezone) {
- super(0);
+ public NSTimestamp(long l, int i, TimeZone timezone) {
+ super(0);
throw new UnsupportedOperationException("Not Yet Implemented");
- }
+ }
- public NSTimestamp(int i, int j, int k, int l, int i1, int j1, TimeZone timezone) {
- super(0);
+ public NSTimestamp(int i, int j, int k, int l, int i1, int j1, TimeZone timezone) {
+ super(0);
throw new UnsupportedOperationException("Not Yet Implemented");
- }
+ }
- public NSTimestamp(Date date) {
- super(0);
+ public NSTimestamp(Date date) {
+ super(0);
throw new UnsupportedOperationException("Not Yet Implemented");
- }
+ }
- public NSTimestamp(Timestamp timestamp) {
- super(0);
+ public NSTimestamp(Timestamp timestamp) {
+ super(0);
throw new UnsupportedOperationException("Not Yet Implemented");
- }
+ }
- public NSTimestamp timestampByAddingGregorianUnits(int i, int j, int k, int l, int i1, int j1) {
+ public NSTimestamp timestampByAddingGregorianUnits(int i, int j, int k, int l, int i1, int j1) {
throw new UnsupportedOperationException("Not Yet Implemented");
- }
+ }
- public NSTimestamp timestampByAddingTimeInterval(long l) {
+ public NSTimestamp timestampByAddingTimeInterval(long l) {
throw new UnsupportedOperationException("Not Yet Implemented");
- }
+ }
- public long dayOfCommonEra() {
+ public long dayOfCommonEra() {
throw new UnsupportedOperationException("Not Yet Implemented");
- }
+ }
- public int dayOfMonth() {
+ public int dayOfMonth() {
throw new UnsupportedOperationException("Not Yet Implemented");
- }
+ }
- public int dayOfWeek() {
+ public int dayOfWeek() {
throw new UnsupportedOperationException("Not Yet Implemented");
- }
+ }
- public int dayOfYear() {
+ public int dayOfYear() {
throw new UnsupportedOperationException("Not Yet Implemented");
- }
+ }
- public int hourOfDay() {
+ public int hourOfDay() {
throw new UnsupportedOperationException("Not Yet Implemented");
- }
+ }
- public int microsecondOfSecond() {
+ public int microsecondOfSecond() {
throw new UnsupportedOperationException("Not Yet Implemented");
- }
+ }
- public int minuteOfHour() {
+ public int minuteOfHour() {
throw new UnsupportedOperationException("Not Yet Implemented");
- }
+ }
- public int monthOfYear() {
+ public int monthOfYear() {
throw new UnsupportedOperationException("Not Yet Implemented");
- }
+ }
- public int secondOfMinute() {
+ public int secondOfMinute() {
throw new UnsupportedOperationException("Not Yet Implemented");
- }
+ }
- public int yearOfCommonEra() {
+ public int yearOfCommonEra() {
throw new UnsupportedOperationException("Not Yet Implemented");
- }
+ }
- public void gregorianUnitsSinceTimestamp(IntRef intref, IntRef intref1, IntRef intref2, IntRef intref3, IntRef intref4, IntRef intref5, NSTimestamp nstimestamp) {
+ public void gregorianUnitsSinceTimestamp(IntRef intref, IntRef intref1, IntRef intref2, IntRef intref3,
+ IntRef intref4, IntRef intref5, NSTimestamp nstimestamp) {
throw new UnsupportedOperationException("Not Yet Implemented");
- }
+ }
- public long timeIntervalSinceTimestamp(NSTimestamp nstimestamp) {
+ public long timeIntervalSinceTimestamp(NSTimestamp nstimestamp) {
throw new UnsupportedOperationException("Not Yet Implemented");
- }
+ }
- public long timeIntervalSinceNow() {
+ public long timeIntervalSinceNow() {
throw new UnsupportedOperationException("Not Yet Implemented");
- }
+ }
- public long timeIntervalSinceReferenceDate() {
+ public long timeIntervalSinceReferenceDate() {
throw new UnsupportedOperationException("Not Yet Implemented");
- }
+ }
- public int compare(NSTimestamp nstimestamp) {
+ public int compare(NSTimestamp nstimestamp) {
throw new UnsupportedOperationException("Not Yet Implemented");
- }
+ }
- public NSTimestamp earlierTimestamp(NSTimestamp nstimestamp) {
+ public NSTimestamp earlierTimestamp(NSTimestamp nstimestamp) {
throw new UnsupportedOperationException("Not Yet Implemented");
- }
+ }
- public NSTimestamp laterTimestamp(NSTimestamp nstimestamp) {
+ public NSTimestamp laterTimestamp(NSTimestamp nstimestamp) {
throw new UnsupportedOperationException("Not Yet Implemented");
- }
+ }
- public String toString() {
+ public String toString() {
throw new UnsupportedOperationException("Not Yet Implemented");
- }
+ }
- public NSTimeZone timeZone() {
+ public NSTimeZone timeZone() {
throw new UnsupportedOperationException("Not Yet Implemented");
- }
+ }
- public long _getTimeInMillis() {
+ public long _getTimeInMillis() {
throw new UnsupportedOperationException("Not Yet Implemented");
- }
+ }
- public void setNanos(int i) {
+ public void setNanos(int i) {
throw new UnsupportedOperationException("Not Yet Implemented");
- }
+ }
- /** @deprecated This method deprecated in parent java.util.Date */
- public void setDate(int i) {
+ /** @deprecated This method deprecated in parent java.util.Date */
+ public void setDate(int i) {
throw new UnsupportedOperationException("Not Yet Implemented");
- }
+ }
- /** @deprecated This method deprecated in parent java.util.Date */
- public void setHours(int i) {
+ /** @deprecated This method deprecated in parent java.util.Date */
+ public void setHours(int i) {
throw new UnsupportedOperationException("Not Yet Implemented");
- }
+ }
- /** @deprecated This method deprecated in parent java.util.Date */
- public void setMinutes(int i) {
+ /** @deprecated This method deprecated in parent java.util.Date */
+ public void setMinutes(int i) {
throw new UnsupportedOperationException("Not Yet Implemented");
- }
+ }
- /** @deprecated This method deprecated in parent java.util.Date */
- public void setMonth(int i) {
+ /** @deprecated This method deprecated in parent java.util.Date */
+ public void setMonth(int i) {
throw new UnsupportedOperationException("Not Yet Implemented");
- }
+ }
- /** @deprecated This method deprecated in parent java.util.Date */
- public void setSeconds(int i) {
+ /** @deprecated This method deprecated in parent java.util.Date */
+ public void setSeconds(int i) {
throw new UnsupportedOperationException("Not Yet Implemented");
- }
+ }
- public void setTime(long l) {
+ public void setTime(long l) {
throw new UnsupportedOperationException("Not Yet Implemented");
- }
+ }
- public long getTime() {
+ public long getTime() {
throw new UnsupportedOperationException("Not Yet Implemented");
- }
+ }
- /** @deprecated This method deprecated in parent java.util.Date */
- public void setYear(int i) {
+ /** @deprecated This method deprecated in parent java.util.Date */
+ public void setYear(int i) {
throw new UnsupportedOperationException("Not Yet Implemented");
- }
+ }
}
/*
- * $Log$
- * Revision 1.1 2006/02/16 12:47:16 cgruber
- * Check in all sources in eclipse-friendly maven-enabled packages.
+ * $Log$ Revision 1.1 2006/02/16 12:47:16 cgruber Check in all sources in
+ * eclipse-friendly maven-enabled packages.
*
- * Revision 1.2 2003/08/06 23:07:52 chochos
- * general code cleanup (mostly, removing unused imports)
+ * Revision 1.2 2003/08/06 23:07:52 chochos general code cleanup (mostly,
+ * removing unused imports)
*
- * Revision 1.1 2002/07/14 21:56:16 mpowers
- * Contributions from cgruber.
+ * Revision 1.1 2002/07/14 21:56:16 mpowers Contributions from cgruber.
*
- * Revision 1.3 2002/06/25 19:06:13 cgruber
- * Comment fix.
+ * Revision 1.3 2002/06/25 19:06:13 cgruber Comment fix.
*
- * Revision 1.2 2002/06/25 19:05:27 cgruber
- * Add deprecation statements to remove warnings
- * about java.util.Date's deprecated APIs.
+ * Revision 1.2 2002/06/25 19:05:27 cgruber Add deprecation statements to remove
+ * warnings about java.util.Date's deprecated APIs.
*
- * Revision 1.1 2002/06/25 07:52:56 cgruber
- * Add quite a few abstract classes, interfaces, and classes. All
- * API consistent with WebObjects, but with no implementation, nor
- * any private or package access members from the original.
+ * Revision 1.1 2002/06/25 07:52:56 cgruber Add quite a few abstract classes,
+ * interfaces, and classes. All API consistent with WebObjects, but with no
+ * implementation, nor any private or package access members from the original.
*
*/