[OpenAFS] 'vos examine', 'Last update' and date format
Tue, 2 Sep 2003 10:57:30 -0400
>>>>> "Turbo" == Turbo Fredriksson <email@example.com> writes:
Turbo> Is it possible to get the date in UNIX format (seconds from Jan
Turbo> 1, 1970)? That's easier to parse then the default format...
What's hard to parse about it?
If you using a language that's well suited to parsing text, for
example, perl, then its trivial.
In fact, if you're using perl, then the Date::Parse module has a
function that will take the Last Update time and turn into a utime
value for you: str2time().
Go to www.cpan.org and start groping from there...
BTW, I recommend telling vos to print GMT values, so the timezones
have no chance of confusing anything (timezone's cause confusion since
that rules for timezones, such as daylight savings time, can change
from year to year, and the underlying config files can be ouyt of
TZ=GMT vos examine ...