Ejemplo n.º 1
0
 private DateTimeOffset getReleaseDateFromEntry(ContentManifestDirectoryEntry entry)
 {
     if (entry.content == EMBEDDED_CONTENT)
     {
         return(DateTimeOffset.MinValue);
     }
     if (!string.IsNullOrEmpty(entry.releaseDate))
     {
         return(CommonDateTime.Deserialize(entry.releaseDate));
     }
     string[] array = entry.content.Split('_');
     if (array.Length == 2)
     {
         string dateString = array[1];
         return(CommonDateTime.CreateDate(dateString));
     }
     return(DateTimeOffset.MinValue);
 }
Ejemplo n.º 2
0
 public DateTimeOffset GetContentDate()
 {
     return(CommonDateTime.CreateDate(2017, 1, 1));
 }