2010-03-05 Rodrigo Kumpera <rkumpera@novell.com>
[mcs.git] / class / WindowsBase / ZipSharp / ZipTime.cs
blob2736df9410d31eafd67219677f04fbe3f186166c
1 // ZipTime.cs created with MonoDevelop
2 // User: alan at 11:56 13/10/2008
3 //
4 // To change standard headers go to Edit->Preferences->Coding->Standard Headers
5 //
7 using System;
8 using System.Runtime.InteropServices;
10 namespace zipsharp
12 [StructLayoutAttribute (LayoutKind.Sequential)]
13 struct ZipTime
15 uint second;
16 uint minute;
17 uint hour;
18 uint day;
19 uint month;
20 uint year;
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;
32 public DateTime Date
34 get { return new DateTime ((int) year, (int) month, (int) day, (int) hour, (int) minute, (int) second); }