Is there any way convert text to time type?
Code in postgresql as below:
to_char(localtimestamp(0),'HH24:mi:SS')
this way I will get the value like 15:15:20,but this type is varchar(or text).
How can I do to get the value in time type?
Thanks!
Note that your very query (which returns local time) can be rewritten as
which would return
TIME