Package totalcross.sql
Class Timestamp
- java.lang.Object
-
- totalcross.util.Date
-
- totalcross.sql.Timestamp
-
- All Implemented Interfaces:
Comparable
public class Timestamp extends Date
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanafter(Timestamp ts)booleanbefore(Timestamp ts)booleanequals(java.lang.Object ts)Checks to see if the Date object passed occurs at the same time as the existing Date object.booleanequals(Timestamp ts)intgetNanos()longgetTime()Returns the number of seconds since SQL_EPOCH 1/1/1970.voidsetNanos(int n)java.lang.StringtoString()Returns the date in a string format.-
Methods inherited from class totalcross.util.Date
advance, advanceMonth, advanceMonth, advanceWeek, advanceWeek, compareTo, formatDate, formatDate, formatDate, formatDate, formatDayMonth, getDate, getDateInt, getDay, getDayOfWeek, getDaysInMonth, getDaysInMonth, getDaysInMonth, getGregorianDay, getMonth, getMonthName, getSQLLong, getSQLString, getSQLString, getWeek, getYear, isAfter, isBefore, isLeapYear, set, set, setToday, subtract, toString, toString
-
-
-
-
Constructor Detail
-
Timestamp
public Timestamp(Time t)
-
Timestamp
public Timestamp(long time)
-
-
Method Detail
-
getTime
public long getTime()
Description copied from class:DateReturns the number of seconds since SQL_EPOCH 1/1/1970.
-
toString
public java.lang.String toString()
Description copied from class:DateReturns the date in a string format.
-
getNanos
public int getNanos()
-
setNanos
public void setNanos(int n)
-
equals
public boolean equals(Timestamp ts)
-
equals
public boolean equals(java.lang.Object ts)
Description copied from class:DateChecks to see if the Date object passed occurs at the same time as the existing Date object.
-
before
public boolean before(Timestamp ts)
-
after
public boolean after(Timestamp ts)
-
-