Stay organized with collections Save and categorize content based on your preferences.
Methods Method Return type Brief descriptionafter(when)
Boolean
For documentation of this method, see java.sql.Timestamp#after(Timestamp)
. before(when)
Boolean
For documentation of this method, see java.sql.Timestamp#before(Timestamp)
. getDate()
Integer
For documentation of this method, see java.sql.Date#getDate()
. getHours()
Integer
For documentation of this method, see java.sql.Date#getHours()
. getMinutes()
Integer
For documentation of this method, see java.sql.Date#getMinutes()
. getMonth()
Integer
For documentation of this method, see java.sql.Date#getMonth()
. getNanos()
Integer
For documentation of this method, see java.sql.Timestamp#getNanos()
. getSeconds()
Integer
For documentation of this method, see java.sql.Date#getSeconds()
. getTime()
Integer
For documentation of this method, see java.sql.Timestamp#getTime()
. getYear()
Integer
For documentation of this method, see java.sql.Date#getYear()
. setDate(date)
void
For documentation of this method, see java.sql.Date#setDate(int)
. setHours(hours)
void
For documentation of this method, see java.sql.Date#setHours(int)
. setMinutes(minutes)
void
For documentation of this method, see java.sql.Date#setMinutes(int)
. setMonth(month)
void
For documentation of this method, see java.sql.Date#setMonth(int)
. setNanos(nanoseconds)
void
For documentation of this method, see java.sql.Timestamp#setNanos(int)
. setSeconds(seconds)
void
For documentation of this method, see java.sql.Date#setSeconds(int)
. setTime(milliseconds)
void
For documentation of this method, see java.sql.Timestamp#setTime(long)
. setYear(year)
void
For documentation of this method, see java.sql.Date#setYear(int)
. Detailed documentation after(when)
For documentation of this method, see java.sql.Timestamp#after(Timestamp)
.
when
JdbcTimestamp
A timestamp to compare to. Return
Boolean
— true
if and only if this timestampe is strictly later than the timestamp specified as a parameter; false
otherwise.
before(when)
For documentation of this method, see java.sql.Timestamp#before(Timestamp)
.
when
JdbcTimestamp
A timestamp to compare to. Return
Boolean
— true
if and only if this timestamp is strictly earlier than the timestamp specified as a parameter; false
otherwise.
getDate()
For documentation of this method, see java.sql.Date#getDate()
.
Integer
— The day of the month represented by this timestamp. The value returned is between 1 and 31 representing the day of the month that contains or begins with the instant in time represented by this timestamp, as interpreted in the local time zone.
getHours()
For documentation of this method, see java.sql.Date#getHours()
.
Integer
— The hour represented by this object; the value is a number (0 through 23) representing the hour within the day that contains or begins with the instant in time represented by this object, as interpreted in the local time zone.
getMinutes()
For documentation of this method, see java.sql.Date#getMinutes()
.
Integer
— The minutes past the hour represented by this object, as interpreted in the local time zone. The value is a number between 0 through 59 inclusive.
getMonth()
For documentation of this method, see java.sql.Date#getMonth()
.
Integer
— The month that contains or begins with the instant in time represented by this timestamp. The value returned is between 0 and 11, with the value 0 representing January.
getSeconds()
For documentation of this method, see java.sql.Date#getSeconds()
.
Integer
— The seconds past the minute represented by this object, as interpreted in the local time zone. The value is a number between 0 through 61 inclusive, whiere 60 and 61 are only possible for machines that take leap seconds into account.
getTime()
For documentation of this method, see java.sql.Timestamp#getTime()
.
Integer
— The number of milliseconds since January 1, 1970, 00:00:00 GMT represented by this time object.
getYear()
For documentation of this method, see java.sql.Date#getYear()
.
Integer
— A value that is the result of subtracting 1900 from the year that contains or begins with the instant in time represented by this timestampe, as interpreted in the local time zone.
setDate(date)
For documentation of this method, see java.sql.Date#setDate(int)
.
date
Integer
The day of month to set. This timestamp is updated to represent a point in time within the specified day of month, with the year, month, hour, minute, and second the same as before, as interpreted in the local time zone. If the date was April 30, for example, and the date is set to 31, then it is treated as if it were on May 1, because April has only 30 days. setHours(hours)
For documentation of this method, see java.sql.Date#setHours(int)
.
hours
Integer
The hour to set; this object is updated to represent a point in time within the specified hour of the day, with the year, month, date, minute, and second the same as before, as interpreted in the local time zone. setMinutes(minutes)
For documentation of this method, see java.sql.Date#setMinutes(int)
.
minutes
Integer
The minutes to set; this object is updated to represent a point in time within the specified minute of the hour, with the year, month, date, hour, and second the same as before, as interpreted in the local time zone. setMonth(month)
For documentation of this method, see java.sql.Date#setMonth(int)
.
month
Integer
The month to set. This timestamp is updated to represent a point in time within the specified month, with the year, date, hour, minute, and second the same as before, as interpreted in the local time zone. If the date was October 31, for example, and the month is set to June, then the new date is treated as if it were on July 1, because June has only 30 days. setSeconds(seconds)
For documentation of this method, see java.sql.Date#setSeconds(int)
.
seconds
Integer
The seconds to set; this object is updated to represent a point in time within the specified second of the minute, with the year, month, date, hour, and minute the same as before, as interpreted in the local time zone. setTime(milliseconds)
For documentation of this method, see java.sql.Timestamp#setTime(long)
.
milliseconds
Integer
The time value to set. The value is milliseconds since January 1, 1970, 00:00:00 GMT. setYear(year)
For documentation of this method, see java.sql.Date#setYear(int)
.
year
Integer
The year value to set; the timestamp's year is set to this value plus 1900. This timestamp is updated to represent a point in time within the specified year, with the month, date, hour, minute, and second the same as before, as interpreted in the local time zone. If the date was February 29, for example, and the year is set to a non-leap year, then the new date is treated as if it were on March 1.
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2024-12-02 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2024-12-02 UTC."],[[["`JdbcTimestamp` is a wrapper for `java.sql.Timestamp` providing methods to interact with timestamp data within ZetaSQL."],["It offers methods to compare timestamps (`after`, `before`), retrieve individual components (like `getDate`, `getHours`, `getNanos`), and modify timestamp values (`setDate`, `setHours`, `setNanos`)."],["The methods largely delegate to underlying `java.sql.Timestamp` or `java.util.Date` methods, inheriting their behavior and semantics."],["Detailed documentation for each method, including parameters and return values, is provided with links to the corresponding Java documentation for deeper understanding."]]],["JdbcTimestamp allows interaction with timestamps via methods such as `after` and `before` for comparison. It includes methods like `getDate`, `getHours`, `getMinutes`, `getMonth`, `getNanos`, `getSeconds`, `getTime`, and `getYear` to retrieve specific time components. Corresponding `set` methods (e.g., `setDate`, `setHours`) update the timestamp, with adjustments for month/year changes. It can represent time components and perform operations like comparisons. All methods are fully documented in Java's documentation.\n"]]
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4