File: timezone.py

package info (click to toggle)
python3-dmm 0.1.3-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 540 kB
  • sloc: python: 441; makefile: 2
file content (20 lines) | stat: -rw-r--r-- 365 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
"""
timezone functions for for dmm.
"""

from command_runner import command_runner

def list_timezones():
    """
    Use systemd to list all timezones.
    """
    ecode, result = command_runner("timedatectl list-timezones")
    return (ecode, result)


def set_timezone(timezone):
    """
    Set a timezone
    """
    print("doesn't actually do anything yet")