38 references to TicksPerDay
mscorlib (38)
system\globalization\CalendricalCalculationsHelper.cs (2)
72
return date.Ticks / GregorianCalendar.
TicksPerDay
;
77
return new DateTime(Math.Min((long)(Math.Floor(numberOfDays) * GregorianCalendar.
TicksPerDay
), DateTime.MaxValue.Ticks)).Year;
system\globalization\datetimeformat.cs (2)
723
if (timeOnly && dateTime.Ticks < Calendar.
TicksPerDay
) {
917
if (dateTime.Ticks < Calendar.
TicksPerDay
) {
system\globalization\datetimeparse.cs (3)
2691
resultTicks += Calendar.
TicksPerDay
;
2714
if (resultTicks < Calendar.
TicksPerDay
) {
2725
resultTicks += Calendar.
TicksPerDay
;
system\globalization\eastasianlunisolarcalendar.cs (1)
545
return ((DayOfWeek)((int)(time.Ticks / Calendar.
TicksPerDay
+ 1) % 7));
system\globalization\gregoriancalendar.cs (4)
184
int n = (int)(ticks /
TicksPerDay
);
264
return (GetAbsoluteDate(year, month, day)*
TicksPerDay
);
319
long ticks = DateToTicks(y, m, d) + time.Ticks %
TicksPerDay
;
357
return ((DayOfWeek)((int)(time.Ticks /
TicksPerDay
+ 1) % 7));
system\globalization\hebrewcalendar.cs (5)
700
return (new DateTime(ToDateTime(y, i, d, 0, 0, 0, 0).Ticks + (time.Ticks %
TicksPerDay
)));
741
long ticks = ToDateTime(y, m, d, 0, 0, 0, 0).Ticks + (time.Ticks %
TicksPerDay
);
763
return ((DayOfWeek)((int)(time.Ticks /
TicksPerDay
+ 1) % 7));
801
return ((int)((time.Ticks - beginOfYearDate.Ticks) /
TicksPerDay
) + 1);
1009
return (new DateTime(gregorianNewYear.Ticks + days *
TicksPerDay
system\globalization\hijricalendar.cs (5)
419
NumDays = ticks / GregorianCalendar.
TicksPerDay
+ 1;
527
long ticks = GetAbsoluteDateHijri(y, m, d)*
TicksPerDay
+ (time.Ticks %
TicksPerDay
);
560
return ((DayOfWeek)((int)(time.Ticks /
TicksPerDay
+ 1) % 7));
699
return (new DateTime(lDate * GregorianCalendar.
TicksPerDay
+ TimeToTicks(hour, minute, second, millisecond)));
system\globalization\juliancalendar.cs (5)
179
long julianTicks = ticks +
TicksPerDay
* 2;
181
int n = (int)(julianTicks /
TicksPerDay
);
226
return ((n - 2) *
TicksPerDay
);
260
long ticks = DateToTicks(y, m, d) + time.Ticks %
TicksPerDay
;
277
return ((DayOfWeek)((int)(time.Ticks /
TicksPerDay
+ 1) % 7));
system\globalization\Persiancalendar.cs (6)
33
internal static long PersianEpoch = new DateTime(622, 3, 22).Ticks / GregorianCalendar.
TicksPerDay
;
221
NumDays = ticks / GregorianCalendar.
TicksPerDay
+ 1;
318
long ticks = GetAbsoluteDatePersian(y, m, d) *
TicksPerDay
+ time.Ticks %
TicksPerDay
;
354
return ((DayOfWeek)((int)(time.Ticks /
TicksPerDay
+ 1) % 7));
521
return (new DateTime(lDate * GregorianCalendar.
TicksPerDay
+ TimeToTicks(hour, minute, second, millisecond)));
system\globalization\umalquracalendar.cs (5)
437
index = (int)((time.Ticks - minDate.Ticks) / Calendar.
TicksPerDay
) / 355;
560
DateTime dt = new DateTime(GetAbsoluteDateUmAlQura(y, m, d) *
TicksPerDay
+ time.Ticks %
TicksPerDay
);
596
return ((DayOfWeek)((int)(time.Ticks /
TicksPerDay
+ 1) % 7));
787
return (new DateTime(lDate * GregorianCalendar.
TicksPerDay
+ TimeToTicks(hour, minute, second, millisecond)));