34 references to MaxTicks
mscorlib (34)
system\currenttimezone.cs (2)
149
if (tick>DateTime.
MaxTicks
) {
150
return new DateTime(DateTime.
MaxTicks
, DateTimeKind.Local);
system\datetime.cs (22)
117
public static readonly DateTime MaxValue = new DateTime(
MaxTicks
, DateTimeKind.Unspecified);
147
if (ticks < MinTicks || ticks >
MaxTicks
)
158
if (ticks < MinTicks || ticks >
MaxTicks
) {
169
if (ticks < MinTicks || ticks >
MaxTicks
) {
273
if (ticks < MinTicks || ticks >
MaxTicks
)
298
if (ticks < MinTicks || ticks >
MaxTicks
)
323
if (ticks < MinTicks || ticks >
MaxTicks
)
357
if (ticks < MinTicks || ticks >
MaxTicks
)
410
if (ticks < MinTicks || ticks >
MaxTicks
) {
542
if (value >
MaxTicks
- ticks || value < MinTicks - ticks) {
718
else if (ticks >
MaxTicks
) {
734
if (ticks < MinTicks || ticks >
MaxTicks
) {
748
if (ticks < MinTicks || ticks >
MaxTicks
)
762
if (fileTime < 0 || fileTime >
MaxTicks
- FileTimeOffset) {
1059
if (tick>DateTime.
MaxTicks
) {
1060
return new DateTime(DateTime.
MaxTicks
, DateTimeKind.Local);
1339
if (ticks - MinTicks < valueTicks || ticks -
MaxTicks
> valueTicks) {
1405
if (tick > DateTime.
MaxTicks
)
1410
return new DateTime(DateTime.
MaxTicks
, DateTimeKind.Local);
1488
if (valueTicks >
MaxTicks
- ticks || valueTicks < MinTicks - ticks) {
1497
if (ticks - MinTicks < valueTicks || ticks -
MaxTicks
> valueTicks) {
1693
if (ticks < MinTicks || ticks >
MaxTicks
) {
system\datetimeoffset.cs (4)
51
public static readonly DateTimeOffset MaxValue = new DateTimeOffset(DateTime.
MaxTicks
, TimeSpan.Zero);
521
const long MaxSeconds = DateTime.
MaxTicks
/ TimeSpan.TicksPerSecond - UnixEpochSeconds;
534
const long MaxMilliseconds = DateTime.
MaxTicks
/ TimeSpan.TicksPerMillisecond - UnixEpochMilliseconds;
802
if (utcTicks < DateTime.MinTicks || utcTicks > DateTime.
MaxTicks
) {
system\globalization\datetimeparse.cs (4)
2650
if (utcTicks < DateTime.MinTicks || utcTicks > DateTime.
MaxTicks
) {
2694
if (resultTicks < DateTime.MinTicks || resultTicks > DateTime.
MaxTicks
) {
2730
if (resultTicks < DateTime.MinTicks || resultTicks > DateTime.
MaxTicks
) {
2741
if (resultTicks < DateTime.MinTicks || resultTicks > DateTime.
MaxTicks
) {
system\timezone.cs (2)
100
if (tickCount>DateTime.
MaxTicks
) {
101
return new DateTime(DateTime.
MaxTicks
, DateTimeKind.Utc);