using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace Nuclex.Networking.Gallery3 {
///
/// Contains helper methods for dealing with the DateTime structure
///
internal static class DateTimeHelper {
/// A DateTime instance pointing to Jan, 1 in 1970
public static readonly DateTime JanFirst1970 = new DateTime(1970, 1, 1);
/// Converts a gallery time into the System.DateTime type
/// Gallery time that will be converted
/// The equivalent System.DateTime for the specified gallery time
public static DateTime DateTimeFromGalleryTime(int galleryTime) {
return JanFirst1970.AddSeconds(galleryTime);
}
}
} // namespace Nuclex.Networking.Gallery3