Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1078)

Unified Diff: mozdownload/timezones.py

Issue 1451373002: Updating mozdownload (excluding tests) (Closed) Base URL: https://chromium.googlesource.com/chromium/deps/mozdownload@master
Patch Set: Updated README.md Created 5 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « mozdownload/scraper.py ('k') | mozdownload/utils.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mozdownload/timezones.py
diff --git a/mozdownload/timezones.py b/mozdownload/timezones.py
index d697591af56dc6d97d7bd297d46c7b32d40bb485..c722300fb7c1c14ac603b4bbf5f229f9fd8eb00c 100644
--- a/mozdownload/timezones.py
+++ b/mozdownload/timezones.py
@@ -15,11 +15,9 @@ class PacificTimezone(tzinfo):
def utcoffset(self, dt):
return timedelta(hours=-8) + self.dst(dt)
-
def tzname(self, dt):
return "Pacific"
-
def dst(self, dt):
# Daylight saving starts on the second Sunday of March at 2AM standard
dst_start_date = self.first_sunday(dt.year, 3) + timedelta(days=7) \
@@ -32,7 +30,6 @@ class PacificTimezone(tzinfo):
else:
return timedelta(0)
-
def first_sunday(self, year, month):
date = datetime(year, month, 1, 0)
days_until_sunday = 6 - date.weekday()
« no previous file with comments | « mozdownload/scraper.py ('k') | mozdownload/utils.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698