Esempio n. 1
0
 public static LocalTime operator -(LocalTime t, TimeSpan span) => t.AddDuration(Duration.FromTimeSpan(span).Negate());
Esempio n. 2
0
        public LocalTime AddDuration(Duration duration)
        {
            long ms = duration.TotalMilliseconds % MS_PerDayL;

            return(new LocalTime((int)((MS_PerDayL + msOfDay + ms) % MS_PerDayL)));
        }
Esempio n. 3
0
 public static LocalTime operator +(LocalTime t, TimeSpan span) => t.AddDuration(Duration.FromTimeSpan(span));
Esempio n. 4
0
 public LocalDate AddDuration(Duration duration) => FromJavaTicks(ticks + duration.TotalMilliseconds);
Esempio n. 5
0
 public LocalDateTime AddDuration(Duration duration) => new LocalDateTime(ticks + duration.TotalMilliseconds);
Esempio n. 6
0
 public static Duration operator -(Timestamp t1, Timestamp t2)
 {
     return(Duration.FromMilliseconds(t1.ticks - t2.ticks));
 }
Esempio n. 7
0
 public Timestamp AddDuration(Duration duration)
 {
     return(new Timestamp(ticks + duration.TotalMilliseconds));
 }