In HP-UX how to find the date time difference ?

Hello,
In HP-UX how to find the date time difference ?

Start time: 28-APR-2019 21:36:01

End time : 29-APR-2019 00:36:04

                       ----------------------
Difference is

                           ----------------------

Much appreciate any pointer or view on this.

Thanks, Siva SQL

You should convert the formatted dates to a UNIX timestamp, then calculate the difference (or whatever your requirement), and then you can covert back into any date format you desire.

Hello Neo,

Please give me some example. It will be much useful.

Thanks, Siva SQL

I'd suggest starting at the bottom of this thread in the More UNIX and Linux Forum Topics You Might Find Helpful section.

1 Like