Exemplo n.º 1
0
 public static string ToMoment(this TimeSpan ts)
 {
     return(TimeSpanEx.ToMoment(ts));
 }
Exemplo n.º 2
0
        public static string ToUtcRelativeDateString(this DateTime dt)
        {
            var ts = new TimeSpan(DateTime.UtcNow.Ticks - dt.Ticks);

            return(TimeSpanEx.impl(ts));
        }
Exemplo n.º 3
0
 public static string ToRelativeDateString(this TimeSpan ts)
 {
     return(TimeSpanEx.impl(ts));
 }
Exemplo n.º 4
0
 public static TimeSpan FromMoment(this TimeSpan ts, string s)
 {
     return(TimeSpanEx.FromMoment(s));
 }