Skip to content
This repository has been archived by the owner on Apr 18, 2020. It is now read-only.

Commit

Permalink
adding CreationTime, while we're at it
Browse files Browse the repository at this point in the history
  • Loading branch information
StephaneDelcroix committed Sep 15, 2009
1 parent 8bd9da5 commit 9cee50a
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions gio/FileInfo.custom
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,9 @@

static DateTime epoch = new DateTime (1970, 1, 1, 0, 0, 0, DateTimeKind.Utc);
public DateTime ModificationTime {
get {
return epoch.AddSeconds (GetAttributeULong ("time::modified"));
}
get { return epoch.AddSeconds (GetAttributeULong ("time::modified")); }
}

public DateTime CreationTime {
get { return epoch.AddSeconds (GetAttributeULong ("time::created")); }
}

0 comments on commit 9cee50a

Please sign in to comment.