Originally posted by genecohen123
Date is obvous but it seems to require that I know what the timezone offset is and wether it is daylight savings time or not...
...which are both things that date() can calculate. if you read the manual:
the "Z" switch = Timezone offset in seconds. The offset for timezones west of UTC is always negative, and for those east of UTC is always positive.
the "I" switch = Whether or not the date is in daylights savings time