Skip to content

Latest commit

 

History

History
18 lines (12 loc) · 851 Bytes

ReadMe.md

File metadata and controls

18 lines (12 loc) · 851 Bytes

Date time calculations to get the difference in time; with/without timezone

👈 Back

💻 How to check: Pointing yourself at root of the project run yarn uc3 and you will see the code execution.

Some of the scenarios to evaluate time difference in frontend with or without timezone are as follows.

  1. To get human readable time of events (Past event of Future Event)
  2. To get time differences which could be used in different comparison
  3. To calculate difference between times without time zone
  4. All above scenarios with package

References

  1. RFC3339 standards docs
  2. ISO 8601 standards docs
  3. MDN - toLocaleDateString