42 references to TicksPerDay
mscorlib (11)
system\datetimeoffset.cs (1)
45
private const long UnixEpochTicks = TimeSpan.
TicksPerDay
* DateTime.DaysTo1970; // 621,355,968,000,000,000
system\globalization\timespanformat.cs (4)
73
int day = (int)(value._ticks / TimeSpan.
TicksPerDay
);
74
long time = value._ticks % TimeSpan.
TicksPerDay
;
150
int day = (int)(value._ticks / TimeSpan.
TicksPerDay
);
151
long time = value._ticks % TimeSpan.
TicksPerDay
;
system\globalization\timespanparse.cs (2)
1410
if (!ParseInt((int)(0x7FFFFFFFFFFFFFFFL / TimeSpan.
TicksPerDay
), out days, ref result)) {
1413
time = days * TimeSpan.
TicksPerDay
;
system\runtime\remoting\soapinteroptypes.cs (2)
285
long timea = Math.Abs(timeSpan.Ticks % TimeSpan.
TicksPerDay
);
375
(Int64.Parse(year, CultureInfo.InvariantCulture)*360+Int64.Parse(month, CultureInfo.InvariantCulture)*30+Int64.Parse(day, CultureInfo.InvariantCulture))*TimeSpan.
TicksPerDay
+
system\timespan.cs (2)
51
private const double DaysPerTick = 1.0 /
TicksPerDay
; // 1.1574074074074074074e-12
105
get { return (int)(_ticks /
TicksPerDay
); }
System.Data (9)
fx\src\data\Microsoft\SqlServer\Server\ValueUtilsSmi.cs (1)
2427
private static readonly TimeSpan x_timeMax = new TimeSpan(TimeSpan.
TicksPerDay
- 1);
fx\src\data\System\Data\Sql\SqlMetaData.cs (1)
1478
private static readonly TimeSpan x_timeMax = new TimeSpan(TimeSpan.
TicksPerDay
- 1);
fx\src\data\System\Data\SqlClient\SqlBuffer.cs (1)
424
return (dateTime2Info.date * TimeSpan.
TicksPerDay
+ dateTime2Info.timeInfo.ticks);
fx\src\data\System\Data\SqlClient\TdsParser.cs (2)
6260
if (0 > value.Ticks || value.Ticks >= TimeSpan.
TicksPerDay
) {
6274
if (0 > value.Ticks || value.Ticks >= TimeSpan.
TicksPerDay
) {
fx\src\data\System\Data\SQLTypes\SQLDateTime.cs (4)
220
return new TimeSpan(value.m_day * TimeSpan.
TicksPerDay
+
233
long dayticks = daypart * TimeSpan.
TicksPerDay
;
247
long ticks = value.Ticks - day * TimeSpan.
TicksPerDay
;
251
ticks += TimeSpan.
TicksPerDay
;
System.Data.Linq (5)
SqlClient\Query\SqlMethodCallConverter.cs (5)
879
SqlExpression TicksFromDays = sql.Multiply(days, TimeSpan.
TicksPerDay
);
2306
return sql.Divide(sql.ConvertToDouble(exp), TimeSpan.
TicksPerDay
);
2331
return sql.ConvertToInt(sql.Divide(exp, TimeSpan.
TicksPerDay
));
2345
SqlExpression daysAdded = sql.DATEADD("day", sql.Divide(sqlTicks, TimeSpan.
TicksPerDay
), sqlDate, source, asNullable);
2366
SqlExpression daysAdded = sql.DATETIMEOFFSETADD("day", sql.Divide(sqlTicks, TimeSpan.
TicksPerDay
), sqlDate, source, asNullable);
System.IdentityModel (4)
System\IdentityModel\SecurityUtils.cs (2)
56
return new DateTime(DateTime.MaxValue.Ticks - TimeSpan.
TicksPerDay
, DateTimeKind.Utc);
65
return new DateTime(DateTime.MinValue.Ticks + TimeSpan.
TicksPerDay
, DateTimeKind.Utc);
System\IdentityModel\Tokens\SamlSecurityTokenHandler.cs (2)
48
static DateTime WCFMinValue = new DateTime(DateTime.MinValue.Ticks + TimeSpan.
TicksPerDay
, DateTimeKind.Utc);
49
static DateTime WCFMaxValue = new DateTime(DateTime.MaxValue.Ticks - TimeSpan.
TicksPerDay
, DateTimeKind.Utc);
System.ServiceModel (3)
System\ServiceModel\Security\SecurityUtils.cs (2)
374
return new DateTime(DateTime.MaxValue.Ticks - TimeSpan.
TicksPerDay
, DateTimeKind.Utc);
383
return new DateTime(DateTime.MinValue.Ticks + TimeSpan.
TicksPerDay
, DateTimeKind.Utc);
System\ServiceModel\TimeSpanHelper.cs (1)
32
TimeSpan value = TimeSpan.FromTicks(TimeSpan.
TicksPerDay
* days);
System.Web (1)
HttpCachePolicy.cs (1)
446
static TimeSpan s_oneYear = new TimeSpan(TimeSpan.
TicksPerDay
* 365);
System.Web.DataVisualization (1)
Common\General\ChartAreaAxes.cs (1)
1977
ticksInterval += (date2.Day - date1.Day) * TimeSpan.
TicksPerDay
;
System.Windows.Forms.DataVisualization (1)
Common\General\ChartAreaAxes.cs (1)
1977
ticksInterval += (date2.Day - date1.Day) * TimeSpan.
TicksPerDay
;
System.Xml (7)
System\Xml\BinaryXml\SqlUtils.cs (2)
799
return SQLBaseDate.Add( new TimeSpan( dateticks * TimeSpan.
TicksPerDay
+
945
return (data[p] | data[p + 1] << 8 | data[p + 2] << 16) * TimeSpan.
TicksPerDay
;
System\Xml\Schema\XsdDuration.cs (5)
97
int years = (int) (ticksPos / ((ulong) TimeSpan.
TicksPerDay
* 365));
98
int months = (int) ((ticksPos % ((ulong) TimeSpan.
TicksPerDay
* 365)) / ((ulong) TimeSpan.
TicksPerDay
* 30));
118
this.days = (int) (ticksPos / (ulong) TimeSpan.
TicksPerDay
);
327
ticks *= (ulong) TimeSpan.
TicksPerDay
;