PLSQL | CURRENT_TIMESTAMP Function Last Updated : 24 Oct, 2019 Comments Improve Suggest changes Like Article Like Report The PLSQL CURRENT_TIMESTAMP function is used to return the current date and time in session time zone. The time zone used is the time zone of the current SQL session as set by the ALTER SESSION command. The CURRENT_TIMESTAMP function returns a value of TIMESTAMP WITH TIME ZONE while the CURRENT_DATE function returns a value of DATE without time zone data. The CURRENT_TIMESTAMP function accepts no parameters. Syntax: CURRENT_TIMESTAMP Parameters Used: The CURRENT_TIMESTAMP function accepts no parameters. Return Value: The CURRENT_TIMESTAMP function returns a value of the current timestamp in TIMESTAMP WITH TIME ZONE data type. Supported Versions of Oracle/PLSQL: Oracle 12c Oracle 11g Oracle 10g Oracle 9i Oracle 8i Example-1: Using the CURRENT_TIMESTAMP function to show the current timestamp in the session time zone. ALTER SESSION SET NLS_DATE_FORMAT = 'DD-MON-YYYY HH24:MI:SS'; SELECT CURRENT_TIMESTAMP FROM dual; Output: Session altered. CURRENT_TIMESTAMP 22-OCT-19 07.28.32.374935 AM +00:00 Example-2: Using the CURRENT_TIMESTAMP function to show the current timestamp using altered session time zone. ALTER SESSION SET TIME_ZONE = '-10:00'; SELECT CURRENT_TIMESTAMP FROM dual; Output: Session altered. CURRENT_TIMESTAMP 21-OCT-19 09.31.40.273270 PM -10:00 The new date and time was adjusted about -10 hours as expected. Advantage: The CURRENT_TIMESTAMP function returns a value of TIMESTAMP WITH TIME ZONE while the CURRENT_DATE function returns a value of DATE without time zone data. Comment More infoAdvertise with us Next Article PLSQL | CURRENT_TIMESTAMP Function S Shubrodeep Banerjee Follow Improve Article Tags : SQL SQL-PL/SQL Similar Reads CURRENT_TIMESTAMP() function in MySQL CURRENT_TIMESTAMP() function in MySQL is used to check the current date and time value. In MySQL function, CURRENT_TIMESTAMP is needed when you need to keep a record of the exact time of delivery which is helpful in improving the services and functionalities of any organization. The format of this f 2 min read CURRENT_TIMESTAMP() Function in SQL Server In SQL Server, the CURRENT_TIMESTAMP function is a widely used feature for retrieving the current date and time directly from the database server. It returns the exact moment when the SQL query is executed in the YYYY-MM-DD hh:mm:ss.mmm format.In this article, We will learn about CURRENT_TIMESTAMP() 3 min read CURRENT_TIME() function in MySQL In MySQL, the CURRENT_TIME() function is a valuable tool for retrieving the current system time from the server, providing the exact time in hours, minutes, and seconds. It is widely used in scenarios where tracking or querying the current time is essential without needing the full date. In this art 3 min read PLSQL | CURRENT_DATE Function The PLSQL CURRENT_DATE function is used to return the current date in the session time zone. The time zone used is the time zone of the current SQL session as set by the ALTER SESSION command. The PLSQL CURRENT_DATE function uses its value from the Gregorian calendar of datatype DATE. The CURRENT_DA 2 min read UTC_TIMESTAMP() function in MySQL UTC_TIMESTAMP() function in MySQL is used to check current Coordinated Universal Time (UTC) date and time value. It returns the current UTC date and time value in YYYY-MM-DD HH:MM:SS or YYYYMMDDHHMMSS.uuu format, depending on whether the function is used in string or numeric context. Syntax : UTC_TI 2 min read Like