C# Class PhotoSharingApp.AppService.Shared.Models.DocumentDB.DateDocument

The json document representing both the string readable date and epoch value. This enables date filtering on photos in document db for fetching hero photos.
Mostrar archivo Open project: Microsoft/Appsample-Photosharing Class Usage Examples

Private Properties

Property Type Description

Public Methods

Method Description
ToEpoch ( System.DateTime date ) : int

Helper function to return the seconds since epoch for the given date.

Method Details

ToEpoch() public static method

Helper function to return the seconds since epoch for the given date.
public static ToEpoch ( System.DateTime date ) : int
date System.DateTime The given date to calculate.
return int