tz -> tww

This commit is contained in:
Daniel Tsvetkov 2019-03-16 10:52:32 -07:00
parent 373afad423
commit fae628b534

View File

@ -1,5 +1,8 @@
#!/usr/bin/env python
""" """
Find time now, in the past or future in any timezone or location.
""" """
import os import os
import argparse import argparse
import logging import logging
@ -19,7 +22,7 @@ logger = logging.getLogger()
def parse_args(): def parse_args():
parser = argparse.ArgumentParser() parser = argparse.ArgumentParser()
parser.add_argument('query', nargs='*', help="<datetime-like> to <timezone-like or location string>") parser.add_argument('query', nargs='*', default="now", help="<datetime-like> to <timezone-like or location string>")
parser.add_argument('--format', dest='format', default=DEFAULT_FORMAT) parser.add_argument('--format', dest='format', default=DEFAULT_FORMAT)
parser.add_argument('--iso', dest='iso', action='store_true') parser.add_argument('--iso', dest='iso', action='store_true')
parser.add_argument('--debug', dest='debug', action='store_true') parser.add_argument('--debug', dest='debug', action='store_true')