Yazeed Sabri
Yazeed Sabri

Reputation: 355

What are the numbers dispalyed next to author from for-each-ref

So I have been trying to use the --format option in the for-each-ref command, and when I run this command:

git for-each-ref --format='%(author)'

I get this output:

Pat McGroin <[email protected]> 1529175479 -0600

What are those numbers at the end? What do they represent?

Upvotes: 1

Views: 42

Answers (1)

Tim Biegeleisen
Tim Biegeleisen

Reputation: 521178

The number immediately after the author email appears to be a UNIX timestamp:

1529175479 -0600
 ^^ UNIX timestamp

The value 1529175479 value corresponds to the date 02/21/2018 @ 2:02am (UTC). You may convince yourself of this by converting the number online: https://www.unixtimestamp.com/index.php

Upvotes: 3

Related Questions