using System; class Program{ static void Main () { DateTime dt1 = DateTime.Now; DateTime dt2 = DateTime.SpecifyKind (dt1, DateTimeKind.Utc); DateTime dt3 = DateTime.SpecifyKind (dt1, DateTimeKind.Unspecified); Console.WriteLine ("D1\t{0}\t{1}\t{2}", dt1, dt1.ToBinary ().ToString ("X16"), DateTime.FromBinary (dt1.ToBinary ())); Console.WriteLine ("D2\t{0}\t{1}\t{2}", dt2, dt2.ToBinary ().ToString ("X16"), DateTime.FromBinary (dt2.ToBinary ())); Console.WriteLine ("D3\t{0}\t{1}\t{2}", dt3, dt3.ToBinary ().ToString ("X16"), DateTime.FromBinary (dt3.ToBinary ())); } } novell@linux-nxgs:~/src/bugzilla> gmcs dt.cs novell@linux-nxgs:~/src/bugzilla> mono --version Mono JIT compiler version 1.2.5 (tarball) Copyright (C) 2002-2007 Novell, Inc and Contributors. www.mono-project.com TLS: __thread GC: Included Boehm (with typed GC) SIGSEGV: normal Architecture: amd64 Disabled: none novell@linux-nxgs:~/src/bugzilla> mono dt.exe D1 11/8/2007 10:05:25 AM 88C9F006048EFBEE 11/8/2007 10:05:25 AM D2 11/8/2007 10:05:25 AM 48C9F006048EFBEE 11/8/2007 10:05:25 AM D3 11/8/2007 10:05:25 AM 08C9F006048EFBEE 11/8/2007 10:05:25 AM novell@linux-nxgs:~/src/bugzilla> . ~/svn/devenv.sh [mono] ~/src/bugzilla @ mono --version Mono JIT compiler version 1.2.5.99 (/trunk/ r88799) Copyright (C) 2002-2007 Novell, Inc and Contributors. www.mono-project.com TLS: __thread GC: Included Boehm (with typed GC) SIGSEGV: altstack Notifications: epoll Architecture: amd64 Disabled: none [mono] ~/src/bugzilla @ mono dt.exe D1 11/8/2007 10:10:05 AM 88C9F006AB04E830 11/8/2007 10:10:05 AM D2 11/8/2007 10:10:05 AM 48C9F006AB04E830 11/8/2007 10:10:05 AM D3 11/8/2007 10:10:05 AM 08C9F006AB04E830 11/8/2007 10:10:05 AM [mono] ~/src/bugzilla @ mono --version Mono JIT compiler version 1.2.5.99 (/trunk/ r88800) Copyright (C) 2002-2007 Novell, Inc and Contributors. www.mono-project.com TLS: __thread GC: Included Boehm (with typed GC) SIGSEGV: altstack Notifications: epoll Architecture: amd64 Disabled: none [mono] ~/src/bugzilla @ mono dt.exe D1 11/8/2007 10:11:30 AM 88C9F030C669CB48 11/8/2007 10:11:30 AM D2 11/8/2007 10:11:30 AM 48C9F006DD93C348 11/8/2007 10:11:30 AM D3 11/8/2007 10:11:30 AM 08C9F006DD93C348 11/8/2007 10:11:30 AM [mono] ~/src/bugzilla @