Benches macOS

1

Xgrid log times

apple Verified

Imported from the Apple Support Forums via the Wayback Machine 🔗

Hi,

We're looking at the logs produced by xgrid -job log -id ###, and they give "time = 295468919;", for example. I was confident that it was just unix time, but when I try to convert it to a human form, it gives:

$ date -r 295468918

Sun May 13 14:41:58 EDT 1979

Everything is right except for the year (and subsequently, the day of week). How is this date actually converted into something proper?

Does mac have its own OS X/Darwin time?

1 reply

Sign in or join Beachball Help to reply.

  1. 0

    richjoyce

    Imported from the Apple Support Forums via the Wayback Machine 🔗

    For those wondering, I solved this.

    It seems they started counting seconds from Jan 1, 2001 midnight. So adding 978307200 to the time and then running date -r yields the correct time