[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: SSL trouble




-----BEGIN PGP SIGNED MESSAGE-----

I wrote:
>"Daniel R. Oelke" <[email protected]> writes:
>>
>>   date "+%S %M 60 * + %H 3600 * + %j 86400 * + %y 31536000 * + p" | dc
>
>date +"%S %M 60 * + %H 3600 * + %j 1 - 86400 * + %y 70 - 31536000 * + %y 
>69 - 4 / 86400 * + 3600 4 * + p" |dc

which has a bit of cruft in it to get universal time, and

>date +"%S %M 60 * + %H 3600 * + %j 1 - 86400 * + %y 70 - 31536000 * + %y
>69 - 4 / 86400 * + p" |dc
>
>which returns local time, which is probably what you wanted anyway.

Well, I overlooked the obvious: You can simply add -u to the above to get
universal time i.e., date -u +... etc.

-----BEGIN PGP SIGNATURE-----
Version: 2.6.2

iQCVAwUBMEOyexEcrOJethBVAQGtFwP9GG27cR3UvJX4/gsO8SK3L3pHGv5mjNp+
0mkRwOg+bj+cf44xAxXZ7/iFU2xaT4sAUvqwIaqbv6AfQgwnqTjAZKIR11KtlKPN
1xDkPXArU4PWSjoFal60Qsuqzacauu99wwUfsILhr8S2xWMj406JdTZPMapgZJI0
N2agSYMj6pY=
=LI+M
-----END PGP SIGNATURE-----

--
David R. Conrad, [email protected], http://www.grfn.org/~conrad
Finger [email protected] for PGP 2.6 public key; it's also on my home page
Key fingerprint =  33 12 BC 77 48 81 99 A5  D8 9C 43 16 3C 37 0B 50
Jerry Garcia, August 1, 1942 - August 9, 1995.  Requiescat in pace.