Retrieve the current date and time in a particular time zone
suggest changeThis fetches NOW() in the session time zone, then in India Standard Time, then in UTC. Named zones such as Asia/Kolkata work only after the time-zone tables are loaded.
SELECT NOW();
SET time_zone='Asia/Kolkata';
SELECT NOW();
SET time_zone='UTC';
SELECT NOW();
Found a mistake? Have a question or improvement idea?
Let me know.
Table Of Contents