Top

Name

curdatetimeoffset — returns current datetime in GMT timezone with adjusted fractional part of seconds

Synopsis

curdatetimeoffset ( in fraction_microseconds integer );
 

Description

The function returns current datetime, like now() , but fractional part of seconds can be adjusted by providing the number of "microseconds" as the argument. It is like curdatetime() but the returned datetime is in GMT timezone.

Parameters

fraction_microseconds

Microseconds.

Return Types

A DATETIME timestamp.

Errors

curdatetimeoffset does not return errors.

Examples

Example 24.64. Get a timestamp

Get a timestamp in human-readable form.

SQL> select curdatetimeoffset();
DATETIME
2015-05-04 09:07:57.847185
No. of rows in result: 1

SQL>select curdatetimeoffset(1);
DATETIME
2015-05-04 09:07:34
No. of rows in result: 1