--- title: "valueOf Method (java.sql.Timestamp, int) | Microsoft Docs" ms.custom: "" ms.date: "01/19/2017" ms.prod: sql ms.prod_service: connectivity ms.reviewer: "" ms.technology: connectivity ms.topic: conceptual ms.assetid: 114f55af-62ab-4c60-8724-0affbbbbbcdc author: David-Engel ms.author: v-daenge --- # valueOf Method (java.sql.Timestamp, int) [!INCLUDE[Driver_JDBC_Download](../../../includes/driver_jdbc_download.md)] Creates a **DateTimeOffset** object representing a point in time at a particular offset from GMT given a java.sql.Timestamp value and a value indicating the offset in minutes. ## Syntax ``` public static DateTimeOffset valueOf(java.sql.Timestamp timestamp, int minutesOffset) ``` #### Parameters *timestamp* Ajava.sql.Timestamp value. *minutesOffset* The offset in minutes. ## Return Value Returns a DateTimeOffset object representing the point in time given by the java.sql.Timestamp object at the given offset, in minutes, from GMT. ## See Also [DateTimeOffset Class](../../../connect/jdbc/reference/datetimeoffset-class.md) [DateTimeOffset Members](../../../connect/jdbc/reference/datetimeoffset-members.md)