1 // ZipTime.cs created with MonoDevelop
2 // User: alan at 11:56 13/10/2008
4 // To change standard headers go to Edit->Preferences->Coding->Standard Headers
8 using System
.Runtime
.InteropServices
;
12 [StructLayoutAttribute (LayoutKind
.Sequential
)]
22 public ZipTime (DateTime time
)
24 second
= (uint) time
.Second
;
25 minute
= (uint) time
.Minute
;
26 hour
= (uint) time
.Hour
;
27 day
= (uint) time
.Day
;
28 month
= (uint) time
.Month
;
29 year
= (uint) time
.Year
;
34 get { return new DateTime ((int) year, (int) month, (int) day, (int) hour, (int) minute, (int) second); }