#!/usr/bin/python

import time
import sys
import argparse

current_time_sec = time.time()

parser = argparse.ArgumentParser()
parser.add_argument('--seconds', action='store_true', default=False)
parser.add_argument('--hours', action='store_true', default=False)
args = parser.parse_args()

if args.seconds and args.hours:
    print('Invalid arguments: cannot specify both --seconds and --hours')
    sys.exit(1)

multiplier = 1000 # millis by default
if args.seconds:
    multiplier = 1
elif args.hours:
    multiplier = 1.0 / 3600

print(int(current_time_sec*multiplier))
