Beispiel #1
0
 public static string ToPrettyDateString(this DateTime d)
 {
     TimeSpan ts = DateTime.Now.Subtract(d);
     return PrettyDateCache.ToPrettyDateString(ts);
 }
Beispiel #2
0
        public static string ToPrettyDateString(this DateTimeOffset d)
        {
            TimeSpan ts = DateTimeOffset.Now.Subtract(d);

            return(PrettyDateCache.ToPrettyDateString(ts));
        }