13-08-2008

CSharp Unixtime to DateTime

DateTime unixEpoch = new DateTime (1970, 1, 1);
TimeSpan timeZoneOffset = TimeZone.CurrentTimeZone.GetUtcOffset (DateTime.UtcNow);
DateTime myTime = unixEpoch.AddSeconds(myUnixtime + timeZoneOffset.TotalSeconds);

ISO-8601 DateTime .NET

Wiered...

DateTime.Now.ToString('s') -> 2008-08-13T13:22:32
DateTime.now.ToString('u') -> 2008-08-13 13:22:32Z

None of them are close enough to iso8601?...

One has to use
DateTime.Now.ToString("yyyy'-'MM'-'dd'T'HH':'mm':'sszz'00'") -> 2008-08-13T13:22:32-0400

Any shorter way to do this?....

12-08-2008

Writing DVDs

Ive never copy DVD's before...
1) readom dev=/dev/hda f=lalala.iso
2) growisofs -dvd-compat -Z /dev/hda=lalala.iso

:P