CURRENT_TIME format in esql

Lee picture Lee · Feb 2, 2013 · Viewed 10.6k times · Source

What is the default format of the function CURRENT_TIME in esql and how do we change it as per our requirements(24 hr or 12 hr formats)

Answer

Richie picture Richie · Feb 7, 2013
DECLARE castTime TIME;
SET castTime = CAST (timeValue AS TIME FORMAT timePattern)

where pattern can be

enter image description here