[runtime] Replace pedump boehm dependency with sgen dependency
[mono.git] / mcs / class / WindowsBase / ZipSharp / ZipTime.cs
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 //
6
7 using System;
8 using System.Runtime.InteropServices;
9
10 namespace zipsharp
11 {
12         [StructLayoutAttribute (LayoutKind.Sequential)]
13         struct ZipTime
14         {
15                 uint second;
16                 uint minute;
17                 uint hour;
18                 uint day;
19                 uint month;
20                 uint year;
21
22                 public ZipTime (DateTime time)
23                 {
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;
30                 }
31
32                 public DateTime Date
33                 {
34                         get { return new DateTime ((int) year, (int) month, (int) day, (int) hour, (int) minute, (int) second); }
35                 }
36         }
37 }