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

sequelize.js - Sequelize group by with association includes id -

android - Robolectric "INTERNET permission is required" -

java - Android raising EPERM (Operation not permitted) when attempting to send UDP packet after network connection -