How to convert 12-hour timestamp to 24-hour timestamp in hive? -


hive timestamp am/pm 24-hour timestamp

hive> select from_unixtime(unix_timestamp('20-jun-84 11.25.32.000000021 pm','dd-mmm-yy hh.mm.ss.sssssssss aa'),'dd-mmm-yy hh.mm.ss.s') test.dual;

hive> select from_unixtime(unix_timestamp('20-jun-84 11.25.32.000000021 pm','dd-mmm-yy hh.mm.ss.sssssssss aa'),'dd-mmm-yy hh.mm.ss.sssssssss') test.dual;


Comments

Popular posts from this blog

c# - Get the Class name in a class with atribute inside a attribute method -

javascript - Why Selenium can't find an element that is graphically visible -

java - How to compare two classes -