#!/bin/bash -ex

# This is a simple test script for tconvert.
# Assumes tconvert is in the path.
#
# Copyright 2012: Jameson Rollins <jameson.rollins@ligo.org>

GPS=$(tconvert Jul 09 2012 17:38:28 UTC)
[[ "$GPS" == '1025890724' ]]

UTC=$(tconvert 1025890724)
[[ "$UTC" == 'Jul 09 2012 17:38:28 UTC' ]]
