Revision a27aa447 trunk/Pithos.Interfaces/ObjectInfo.cs
b/trunk/Pithos.Interfaces/ObjectInfo.cs | ||
---|---|---|
45 | 45 |
set { _version = value; } |
46 | 46 |
} |
47 | 47 |
|
48 |
/* //Alias vor VersionTimestamp, for Json deserialization purposes |
|
49 |
public DateTime? X_Object_Version_Timestamp |
|
48 |
//Alias for VersionTimestamp, for Json deserialization purposes |
|
49 |
//The x_object_version_timestamp returned by GET on a container is |
|
50 |
//a float, probably due to a bug. |
|
51 |
public double? X_Object_Version_Timestamp |
|
50 | 52 |
{ |
51 |
get { return _versionTimestamp; } |
|
52 |
set { _versionTimestamp = value; } |
|
53 |
}*/ |
|
53 |
get |
|
54 |
{ |
|
55 |
if (_versionTimestamp.HasValue) |
|
56 |
return (_versionTimestamp.Value-_epoch).TotalSeconds; |
|
57 |
return null; |
|
58 |
} |
|
59 |
set |
|
60 |
{ |
|
61 |
if (value.HasValue) |
|
62 |
{ |
|
63 |
_versionTimestamp = _epoch.AddSeconds(value.Value); |
|
64 |
} |
|
65 |
else |
|
66 |
{ |
|
67 |
_versionTimestamp = null; |
|
68 |
} |
|
69 |
} |
|
70 |
} |
|
54 | 71 |
|
55 | 72 |
private DateTime? _versionTimestamp; |
56 | 73 |
public DateTime? VersionTimestamp |
... | ... | |
121 | 138 |
}; |
122 | 139 |
|
123 | 140 |
private string _modifiedBy; |
141 |
private DateTime _epoch = new DateTime(1970, 1, 1); |
|
124 | 142 |
} |
125 | 143 |
} |
Also available in: Unified diff