On 1/20/2009 4:00 PM, Craig Green wrote:
'date -d' sets the "the kernel's value for daylight saving time" in FreeBSD. :-) http://www.freebsd.org/cgi/man.cgi?query=date&apropos=0&sektion=0&manpath=FreeBSD+7.1-RELEASE&format=html
Darn, didn't know that. Its -d date Parse the provided human-described date and time and display the result without actually changing the system clock. on NetBSD.I gave up trying to use date years ago when portability is important. The POSIX-based perl solution I gave should be sufficient.
Thanks.
$ date Tue Jan 20 15:51:44 PST 2009 $ date -d now+30minutes Tue Jan 20 16:21:46 PST 2009The BSD equivalent would be: $ date Tue Jan 20 18:58:24 EST 2009 $ date -jv +30M Tue Jan 20 19:28:28 EST 2009