You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+12Lines changed: 12 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -39,3 +39,15 @@ All commits are tested with [Travis CI](https://travis-ci.org/) and *also* requi
39
39
>>> timely = Timely(verbose=True)
40
40
>>> timely.check()
41
41
Stopping instance: i-6dc5bc92
42
+
43
+
### Using timezones
44
+
45
+
By default, `timely` sets the default timezone to `US/Eastern`. However, this can be changed upon instantiation of the `timely` class or via the `set_tz` method. For example:
46
+
47
+
>>> from timely import Timely
48
+
>>> timely = Timely(tz='US/Pacific')
49
+
>>> timely.set_tz('US/Mountain')
50
+
51
+
If the timezone specified does not exist, then `UTC` is used.
52
+
53
+
When assigning the timezone, the `set` method will create a tag `tz` for EC2 containers with the timezone that was specified. Whenever the `check` method is called, the `tz` tag that is assigned to the EC2 container is used to determine whether or not it should be running.
0 commit comments