Tracking PG&E outages by scraping to a Git repo
simonwillison.net
Tracking PG&E outages by scraping to a Git repo
1–10 of 13 posts
Re: Tracking PG&E outages by scraping to a Git repo
#2Re: Tracking PG&E outages by scraping to a Git repo
#3Re: Tracking PG&E outages by scraping to a Git repo
#4Unix time stamps are generally considered to be UTC, but fair to ask of them to clarify. Everyone does their own thing with date time.
¹iiiish. Let's forget leap seconds exist.
Re: Tracking PG&E outages by scraping to a Git repo
#5Re: Tracking PG&E outages by scraping to a Git repo
#6Unix time stamps are generally considered to be UTC, but fair to ask of them to clarify. Everyone does their own thing with date time.
Unix timestamps are a duration ¹; they're not in any particular timezone. They're "the number of seconds since midnight 1 Jan 1970, UTC" — but while I've used "UTC" there, you can also equally define it as the number of seconds since 19:00 on 31 Dec 1969 in America/New_York. It's the epoch itself that requires a timezone, not the duration since the epoch. ¹iiiish. Let's forget leap seconds exist.
Re: Tracking PG&E outages by scraping to a Git repo
#7Unix time stamps are generally considered to be UTC, but fair to ask of them to clarify. Everyone does their own thing with date time.
Unix timestamps are a duration ¹; they're not in any particular timezone. They're "the number of seconds since midnight 1 Jan 1970, UTC" — but while I've used "UTC" there, you can also equally define it as the number of seconds since 19:00 on 31 Dec 1969 in America/New_York. It's the epoch itself that requires a timezone, not the duration since the epoch. ¹iiiish. Let's forget leap seconds exist.
This lead to one of the hardest to track down bugs I ever encountered (ultimately came down to LocalTime(0, "London") coming out as 01:00 when 00:00 was expected)
Re: Tracking PG&E outages by scraping to a Git repo
#8Earlier quoted context omitted.
Unix timestamps are a duration ¹; they're not in any particular timezone. They're "the number of seconds since midnight 1 Jan 1970, UTC" — but while I've used "UTC" there, you can also equally define it as the number of seconds since 19:00 on 31 Dec 1969 in America/New_York. It's the epoch itself that requires a timezone, not the duration since the epoch. ¹iiiish. Let's forget leap seconds exist.
Interesting fact - it was not midnight in Greenwich at the Unix epoch because the UK Government coincidently ran an experiment with staying on British Summer Time the whole year round from 1968 to 1971. This lead to one of the hardest to track down bugs I ever encountered (ultimately came down to LocalTime(0, "London") coming out as 01:00 when 00:00 was expected)
Re: Tracking PG&E outages by scraping to a Git repo
#9Earlier quoted context omitted.
Unix timestamps are a duration ¹; they're not in any particular timezone. They're "the number of seconds since midnight 1 Jan 1970, UTC" — but while I've used "UTC" there, you can also equally define it as the number of seconds since 19:00 on 31 Dec 1969 in America/New_York. It's the epoch itself that requires a timezone, not the duration since the epoch. ¹iiiish. Let's forget leap seconds exist.
Interesting fact - it was not midnight in Greenwich at the Unix epoch because the UK Government coincidently ran an experiment with staying on British Summer Time the whole year round from 1968 to 1971. This lead to one of the hardest to track down bugs I ever encountered (ultimately came down to LocalTime(0, "London") coming out as 01:00 when 00:00 was expected)