Hello, I have a question about the footprint, what do the circled things mean?
Both are hex values with the time stamp.
tedit is the time stamp of the last edit.
5f68feee is 1600716526 decimal, which is a epoch time. Converts to
GMT: Monday, 21 September 2020 19:28:46
If you want to read more, here’s a link to the developer documentation page about the footprint file format:
https://dev-docs.kicad.org/en/file-formats/sexpr-intro/index.html#_footprint
Here’s what it says about those two items:
The
tedit
token defines a the last time the footprint was edited.
Thetstamp
token defines the unique identifier for the footprint.
$ echo 1600716526 | awk '{print strftime("%c",$1)}'
Mon 21 Sep 2020 03:28:46 PM EDT
Why is my time off by 16 hours ? My computer is set to New York City time.
7:28 pm - 3:28 pm is 4 hours. NYC was 4 hours behind UTC then due to DST. BTW:
date -d @1600716526
is a faster way to convert. I get
Tue 22 Sep 2020 05:28:46 AEST
which is 10 hours ahead of UTC, as DST hadn’t started yet in Eastern Australia.
But DST hasn’t started yet in New York City, either.
This was in September 2020. You were still in DST then. See Daylight Saving Time Changes 2022 in New York, New York, USA which is for 2022 (or whatever year you’re viewing that page) but the change dates should be similar.
D’oh! Thanks for pointing out what I should have noted.
I annotated your shorter date command, as it’s simpler. Simpler is better.
Incidentally to deal with the hex values in the file for the date conversion command just use the arithmetic expansion feature of bash, e.g.:
date -d @$((0x5f68feee))
getting:
Tue 22 Sep 2020 05:28:46 AEST
This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.