PostgreSQL LOCALTIMESTAMP() function
LOCALTIMESTAMP() function
This function is used to get current date and time (start of current transaction).
Syntax:
localtimestamp
Return Type: timestamp
PostgreSQL Version: 9.3
Pictorial Presentation of PostgreSQL LOCALTIMESTAMP() function

Example: PostgreSQL LOCALTIMESTAMP() function
SELECT localtimestamp;
Sample Output:
timestamp ------------------------- 2015-01-15 14:02:56.925 (1 row)
N.B. - The outputs may change during the execution for the current date and time.
Previous: JUSTIFY_INTERVAL function
Next: NOW function
- New Content published on w3resource:
- HTML-CSS Practical: Exercises, Practice, Solution
- Java Regular Expression: Exercises, Practice, Solution
- Scala Programming Exercises, Practice, Solution
- Python Itertools exercises
- Python Numpy exercises
- Python GeoPy Package exercises
- Python Pandas exercises
- Python nltk exercises
- Python BeautifulSoup exercises
- Form Template
- Composer - PHP Package Manager
- PHPUnit - PHP Testing
- Laravel - PHP Framework
- Angular - JavaScript Framework
- Vue - JavaScript Framework
- Jest - JavaScript Testing Framework