#!/usr/bin/env python3

"""
what time is/was it?

With no arguments, print the current time.

You can also pass a bunch of epoch stamps as arguments and get the localtime
for those.
"""

import sys
import time

def print_time (when):
    """Pretty-print a localtime"""
    ts = time.localtime(float(when))
    print(time.strftime("%b %d, %Y %H:%M:%S %Z", ts))

if __name__ == "__main__":
    times = sys.argv[1:]
    if not times:
        times = [ time.time() ]

    for t in times:
        print_time(t)


f8b9f97066001b3ab7266b863213560ed78d4d88
<mask token>

<mask token>


def print_time(when):
    """Pretty-print a localtime"""
    ts = time.localtime(float(when))
    print(time.strftime('%b %d, %Y %H:%M:%S %Z', ts))


<mask token>

<mask token>


def print_time(when):
    """Pretty-print a localtime"""
    ts = time.localtime(float(when))
    print(time.strftime('%b %d, %Y %H:%M:%S %Z', ts))


if __name__ == '__main__':
    times = sys.argv[1:]
    if not times:
        times = [time.time()]
    for t in times:
        print_time(t)

<mask token>
import sys
import time


def print_time(when):
    """Pretty-print a localtime"""
    ts = time.localtime(float(when))
    print(time.strftime('%b %d, %Y %H:%M:%S %Z', ts))


if __name__ == '__main__':
    times = sys.argv[1:]
    if not times:
        times = [time.time()]
    for t in times:
        print_time(t)

#!/usr/bin/env python3

"""
what time is/was it?

With no arguments, print the current time.

You can also pass a bunch of epoch stamps as arguments and get the localtime
for those.
"""

import sys
import time

def print_time (when):
    """Pretty-print a localtime"""
    ts = time.localtime(float(when))
    print(time.strftime("%b %d, %Y %H:%M:%S %Z", ts))

if __name__ == "__main__":
    times = sys.argv[1:]
    if not times:
        times = [ time.time() ]

    for t in times:
        print_time(t)

