Hive Tutorial - 16 : Hive Functions | Unix Timestamp Functions | Hive Timestamp Functions
Вставка
- Опубліковано 6 жов 2024
- This video tutorial talks about the unix timestamp functions in Hive.
The timestamp functions like, from_utc_timestamp(), to_utc_timestamp() are explained in details.
UNIX EPOCH explanation:
// Timezone specific
SELECT UNIX_TIMESTAMP();
SELECT FROM_UNIXTIME(UNIX_TIMESTAMP());
SELECT from_utc_timestamp('2020-03-28 11:56:55', 'IST');
SELECT to_utc_timestamp ('','IST');
// General Date functions
SELECT TO_DATE('2020-03-28 11:56:55');
SELECT WEEKOFYEAR('2020-03-28 11:56:55');
SELECT DATEDIFF('2020-03-28','2020-03-28');
SELECT DATE_ADD('2020-03-28', 5);
SELECT DATE_SUB('2020-03-28', 5);
#Hive Functions - Extracting Information from Dates
Fantastic EXPLANATION
I was a beginner and I had learnt this concept at first sitting
Glad it helped!
pls subscribe and stay tunned for more of such tutorials
No doubts, you explained deeply.we can practise along with you like that you made your video. Thankx dude ,very useful one
Thanks for your words.. means a lot!! Don't forget to subscribe to channel and keep learning!
Please keep adding such good videos
sure thanks! pls watch the space for more
Found your vedios helpful sir.
Can you explain how to convert 12-july-2021 to 12-7-2021
Thanks
If we had a column in hive table filled with 500 rows of IST times, is there a command to change all those times to epoch time in one shot
Yes.. there is a tutorial for this on the channel. Pls refer the date and time tutorial
Hi I have a time like '1606297805907000' so how can I convert this in actual value like '2020-11-25 09:50:05.907000' and this is IST timestamp.