Winston Time Conversion

Winston provides a utility class to convert times between the common time formats used with Winston and Earthworm.

Time Formats
Standard
yyyy-MM-dd HH:mm:ss
Human readable output format.

Input
yyyyMMddHHmmss
Format used in winston configuration files.

J2K
Decimal seconds past 00:00:00 NZST on 1 Janurary 2000
Winston's internal time standard.

EW
Decimal seconds past 00:00:00 UTC on 1 January 1970
Earthworm internal time standard.

Winston comes with a command line utility to convert between time formats:
% java -cp lib/winston.jar gov.usgs.volcanoes.core.time.Time
-j2d [j2k] j2k to date
-j2e [j2k] j2k to earthworm
-d2j [yyyymmddhhmmss] date to j2k
-e2d [ewtime] earthworm to date
-md5 [string] md5 of string
-md5r [resource] md5 of a resource (filename, url)
%