(file) Return to getoffset.csh CVS log (file) (dir) Up to [Development] / JSOC / proj / workflow

File: [Development] / JSOC / proj / workflow / getoffset.csh (download) / (as text)
Revision: 1.1, Sun Jan 2 22:14:11 2011 UTC (11 years, 11 months ago) by phil
Branch: MAIN
CVS Tags: Ver_LATEST, Ver_9-5, Ver_9-41, Ver_9-4, Ver_9-3, Ver_9-2, Ver_9-1, Ver_9-0, Ver_8-8, Ver_8-7, Ver_8-6, Ver_8-5, Ver_8-4, Ver_8-3, Ver_8-2, Ver_8-12, Ver_8-11, Ver_8-10, Ver_8-1, Ver_8-0, Ver_7-1, Ver_7-0, Ver_6-4, Ver_6-3, Ver_6-2, Ver_6-1, Ver_6-0, Ver_5-14, Ver_5-13, HEAD
Initial commit, copied from ~phil/workflow

#! /bin/csh -f
# the offset clock status task simply reflects the current time offset by a fixed amount
set OLD = $1
set OLD_t = `time_convert time=$OLD`
set NOW = `date -u +%Y.%m.%d_%H:%M:%S`
set NOW_t = `time_convert time=$NOW`
@ OFFSET = $NOW_t - $OLD_t
echo $OFFSET

Karen Tian
Powered by
ViewCVS 0.9.4