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
Post a Comment