Postgresql ahora la fecha

Ejemplos de código

1
0

postgresql obtener fecha ahora

If you want get the current date and time without timezone, you can cast it explicitly as follows:

SELECT NOW()::timestamp;
            now
----------------------------
 2017-03-17 18:37:29.229991
(1 row)
Code language: SQL (Structured Query Language) (sql)
0
0

postgres datetime ahora

/*
The NOW() function returns the current date and time.
The return type of the NOW() function is the timestamp with time zone.
See the following example:*/

SELECT NOW();
/*-------------------------------*/
2017-03-18 08:21:36.175627+07
/*
Note that the NOW() function returns current date and time based on
the database server’s time zone setting.*/

En otros idiomas

Esta página está en otros idiomas

Русский
..................................................................................................................
English
..................................................................................................................
Italiano
..................................................................................................................
Polski
..................................................................................................................
Română
..................................................................................................................
한국어
..................................................................................................................
हिन्दी
..................................................................................................................
Français
..................................................................................................................
Türk
..................................................................................................................
Česk
..................................................................................................................
Português
..................................................................................................................
ไทย
..................................................................................................................
中文
..................................................................................................................
Slovenský
..................................................................................................................
Балгарскі
..................................................................................................................
Íslensk
..................................................................................................................