Finding the Time in Different Zones

Finding the Time in Different Zones

These days, many enterprises exchange data using a request/response approach. This data typically contains the date and time information regarding when a request was generated/received or a response generated/received. If they are in different time zones the following code/query can help in finding out the times in their respective zones.

 Select to_char(new_time(sysdate,'PST','EST'), _'dd-mm-yy hh24:mi:ss') from dual;

This gives the Date and time in in East Coast for the corresponding time in PST. For example: 9.00 am in PST is given as:

 SQL> select to_char(new_time(to_date('10/18/01 _9:00:00','MM/DD/YYHH24:MI:SS'),'PST','EST'), 'dd-mm-yy hh24:mi:ss') from dual;TO_CHAR(NEW_TIME(-----------------18-10-01 12:00:00

This can be used for different time zones like GMT,CST, and so on.It can also be used when storing information about request/response times.

Share the Post:
data observability

Data Observability Explained

Data is the lifeblood of any successful business, as it is the driving force behind critical decision-making, insight generation, and strategic development. However, due to its intricate nature, ensuring the

Heading photo, Metadata.

What is Metadata?

What is metadata? Well, It’s an odd concept to wrap your head around. Metadata is essentially the secondary layer of data that tracks details about the “regular” data. The regular

XDR solutions

The Benefits of Using XDR Solutions

Cybercriminals constantly adapt their strategies, developing newer, more powerful, and intelligent ways to attack your network. Since security professionals must innovate as well, more conventional endpoint detection solutions have evolved