166 references to ToUniversalTime
mscorlib (13)
system\datetime.cs (2)
1371
return
ToUniversalTime
().ToFileTimeUtc();
1376
long ticks = ((InternalKind & LocalMask) != 0) ?
ToUniversalTime
().InternalTicks : this.InternalTicks;
system\globalization\datetimeformat.cs (2)
900
dateTime = dateTime.
ToUniversalTime
();
1095
DateTime universalTime = dateTime.
ToUniversalTime
();
system\io\directory.cs (3)
455
SetCreationTimeUtc(path, creationTime.
ToUniversalTime
());
492
SetLastWriteTimeUtc(path, lastWriteTime.
ToUniversalTime
());
529
SetLastAccessTimeUtc(path, lastAccessTime.
ToUniversalTime
());
system\io\file.cs (3)
487
SetCreationTimeUtc(path, creationTime.
ToUniversalTime
());
551
SetLastAccessTimeUtc(path, lastAccessTime.
ToUniversalTime
());
615
SetLastWriteTimeUtc(path, lastWriteTime.
ToUniversalTime
());
system\io\filesysteminfo.cs (3)
161
CreationTimeUtc = value.
ToUniversalTime
();
205
LastAccessTimeUtc = value.
ToUniversalTime
();
248
LastWriteTimeUtc = value.
ToUniversalTime
();
System (12)
net\System\Net\_HTTPDateParse.cs (1)
434
dtOut = dtOut.
ToUniversalTime
();
net\System\Net\Cache\FtpRequestCacheValidator.cs (5)
284
if(Logging.On) Logging.PrintInfo(Logging.RequestCache, SR.GetString(SR.net_log_cache_response_last_modified, resp.LastModified.
ToUniversalTime
().ToString("r", CultureInfo.InvariantCulture), resp.ContentLength));
294
if (resp.LastModified.
ToUniversalTime
() == CacheEntry.LastModifiedUtc)
442
if (CacheEntry.LastModifiedUtc != DateTime.MinValue && resp.LastModified.
ToUniversalTime
() != CacheEntry.LastModifiedUtc)
444
if(Logging.On)Logging.PrintWarning(Logging.RequestCache, SR.GetString(SR.net_log_cache_removed_entry_because_ftp_restart_response_changed, CacheEntry.LastModifiedUtc.ToString("r", CultureInfo.InvariantCulture), resp.LastModified.
ToUniversalTime
().ToString("r", CultureInfo.InvariantCulture)));
464
CacheEntry.LastModifiedUtc = resp.LastModified.
ToUniversalTime
();
net\System\Net\Cache\HttpRequestCacheValidator.cs (3)
737
date = date.
ToUniversalTime
();
751
date = date.
ToUniversalTime
();
765
date = date.
ToUniversalTime
();
net\System\Net\Cache\RequestCachePolicy.cs (2)
218
m_LastSyncDateUtc = cacheSyncDate.
ToUniversalTime
();
226
m_LastSyncDateUtc = cacheSyncDate.
ToUniversalTime
();
net\System\Net\Internal.cs (1)
1989
return D.
ToUniversalTime
().ToString("R", dateFormat);
System.Activities (1)
System\Activities\Tracking\EtwTrackingParticipant.cs (1)
190
DateTime date = ((DateTime)item.Value).
ToUniversalTime
();
System.Activities.DurableInstancing (1)
System\Activities\DurableInstancing\SaveWorkflowAsyncResult.cs (1)
249
DateTime pendingTimerExpiration = ((DateTime)pendingTimerExpirationPropertyValue.Value).
ToUniversalTime
();
System.Data (3)
fx\src\data\System\Data\Common\DateTimeStorage.cs (2)
149
retVal = tmpValue.
ToUniversalTime
();
220
typedStore[storeIndex] = values[record].
ToUniversalTime
();
fx\src\data\System\Data\Common\ObjectStorage.cs (1)
433
typedStore[storeIndex] = DateTime.SpecifyKind(dt.
ToUniversalTime
(), DateTimeKind.Local);
System.Data.Services (1)
System\Data\Services\Serializers\JsonWriter.cs (1)
269
dateTime = dateTime.
ToUniversalTime
();
System.IdentityModel (45)
System\IdentityModel\Claims\X509CertificateClaimSet.cs (1)
89
this.expirationTime = this.certificate.NotAfter.
ToUniversalTime
();
System\IdentityModel\DateTimeUtil.cs (1)
79
return value.
ToUniversalTime
();
System\IdentityModel\Protocols\WSTrust\WSTrustSerializationHelper.cs (2)
2536
created = DateTime.ParseExact(reader.ReadString(), DateTimeFormats.Accepted, DateTimeFormatInfo.InvariantInfo, DateTimeStyles.None).
ToUniversalTime
();
2543
expires = DateTime.ParseExact(reader.ReadString(), DateTimeFormats.Accepted, DateTimeFormatInfo.InvariantInfo, DateTimeStyles.None).
ToUniversalTime
();
System\IdentityModel\SecurityUtils.cs (2)
174
return (curEffectiveTime.
ToUniversalTime
() <= curTime) && (curTime < curExpirationTime.
ToUniversalTime
());
System\IdentityModel\Selectors\SamlSecurityTokenAuthenticator.cs (1)
79
throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new SecurityTokenException(SR.GetString(SR.SAMLTokenTimeInvalid, DateTime.UtcNow.
ToUniversalTime
(), samlToken.ValidFrom.ToString(), samlToken.ValidTo.ToString())));
System\IdentityModel\Tokens\GenericXmlSecurityToken.cs (2)
49
this.effectiveTime = effectiveTime.
ToUniversalTime
();
50
this.expirationTime = expirationTime.
ToUniversalTime
();
System\IdentityModel\Tokens\Saml2SecurityTokenHandler.cs (9)
1378
DateTime authInstantTime = DateTime.ParseExact(authenticationInstant, DateTimeFormats.Accepted, DateTimeFormatInfo.InvariantInfo, DateTimeStyles.None).
ToUniversalTime
();
1985
subject.AddClaim(new Claim(ClaimTypes.AuthenticationInstant, XmlConvert.ToString(statement.AuthenticationInstant.
ToUniversalTime
(), DateTimeFormats.Generated), ClaimValueTypes.DateTime, issuer));
2877
writer.WriteAttributeString(Saml2Constants.Attributes.IssueInstant, XmlConvert.ToString(data.IssueInstant.
ToUniversalTime
(), DateTimeFormats.Generated));
3794
writer.WriteAttributeString(Saml2Constants.Attributes.AuthnInstant, XmlConvert.ToString(data.AuthenticationInstant.
ToUniversalTime
(), DateTimeFormats.Generated));
3805
writer.WriteAttributeString(Saml2Constants.Attributes.SessionNotOnOrAfter, XmlConvert.ToString(data.SessionNotOnOrAfter.Value.
ToUniversalTime
(), DateTimeFormats.Generated));
4169
writer.WriteAttributeString(Saml2Constants.Attributes.NotBefore, XmlConvert.ToString(data.NotBefore.Value.
ToUniversalTime
(), DateTimeFormats.Generated));
4175
writer.WriteAttributeString(Saml2Constants.Attributes.NotOnOrAfter, XmlConvert.ToString(data.NotOnOrAfter.Value.
ToUniversalTime
(), DateTimeFormats.Generated));
5405
writer.WriteAttributeString(Saml2Constants.Attributes.NotBefore, XmlConvert.ToString(data.NotBefore.Value.
ToUniversalTime
(), DateTimeFormats.Generated));
5411
writer.WriteAttributeString(Saml2Constants.Attributes.NotOnOrAfter, XmlConvert.ToString(data.NotOnOrAfter.Value.
ToUniversalTime
(), DateTimeFormats.Generated));
System\IdentityModel\Tokens\SamlAssertion.cs (3)
25
DateTime issueInstant = DateTime.UtcNow.
ToUniversalTime
();
73
this.issueInstant = issueInstant.
ToUniversalTime
();
533
attributeValue, SamlConstants.AcceptedDateTimeFormats, DateTimeFormatInfo.InvariantInfo, DateTimeStyles.None).
ToUniversalTime
();
System\IdentityModel\Tokens\SamlAuthenticationStatement.cs (3)
19
DateTime authenticationInstant = DateTime.UtcNow.
ToUniversalTime
();
42
this.authenticationInstant = authenticationInstant.
ToUniversalTime
();
180
authInstance, SamlConstants.AcceptedDateTimeFormats, DateTimeFormatInfo.InvariantInfo, DateTimeStyles.None).
ToUniversalTime
();
System\IdentityModel\Tokens\SamlConditions.cs (4)
38
this.notBefore = notBefore.
ToUniversalTime
();
39
this.notOnOrAfter = notOnOrAfter.
ToUniversalTime
();
116
time, SamlConstants.AcceptedDateTimeFormats, DateTimeFormatInfo.InvariantInfo, DateTimeStyles.None).
ToUniversalTime
();
121
time, SamlConstants.AcceptedDateTimeFormats, DateTimeFormatInfo.InvariantInfo, DateTimeStyles.None).
ToUniversalTime
();
System\IdentityModel\Tokens\SamlSecurityTokenHandler.cs (10)
393
DateTimeStyles.None).
ToUniversalTime
();
1407
subject.AddClaim(new Claim(ClaimTypes.AuthenticationInstant, XmlConvert.ToString(samlStatement.AuthenticationInstant.
ToUniversalTime
(), DateTimeFormats.Generated), ClaimValueTypes.DateTime, issuer));
1805
attributeValue, DateTimeFormats.Accepted, DateTimeFormatInfo.InvariantInfo, DateTimeStyles.None).
ToUniversalTime
();
1883
writer.WriteAttributeString(SamlConstants.AttributeNames.IssueInstant, null, assertion.IssueInstant.
ToUniversalTime
().ToString(DateTimeFormats.Generated, CultureInfo.InvariantCulture));
1926
time, DateTimeFormats.Accepted, DateTimeFormatInfo.InvariantInfo, DateTimeStyles.None).
ToUniversalTime
();
1933
time, DateTimeFormats.Accepted, DateTimeFormatInfo.InvariantInfo, DateTimeStyles.None).
ToUniversalTime
();
1989
conditions.NotBefore.
ToUniversalTime
().ToString(DateTimeFormats.Generated, DateTimeFormatInfo.InvariantInfo));
1998
conditions.NotOnOrAfter.
ToUniversalTime
().ToString(DateTimeFormats.Generated, DateTimeFormatInfo.InvariantInfo));
2862
authInstance, DateTimeFormats.Accepted, DateTimeFormatInfo.InvariantInfo, DateTimeStyles.None).
ToUniversalTime
();
2943
XmlConvert.ToString(statement.AuthenticationInstant.
ToUniversalTime
(), DateTimeFormats.Generated));
System\IdentityModel\Tokens\SecurityTokenDescriptor.cs (1)
250
new Claim(ClaimTypes.AuthenticationInstant, XmlConvert.ToString(time.
ToUniversalTime
(), DateTimeFormats.Generated), ClaimValueTypes.DateTime));
System\IdentityModel\Tokens\SessionSecurityToken.cs (4)
753
XmlUtil.WriteElementContentAsInt64(dicWriter, dictionary.EffectiveTime, dictionary.EmptyString, this.ValidFrom.
ToUniversalTime
().Ticks);
754
XmlUtil.WriteElementContentAsInt64(dicWriter, dictionary.ExpiryTime, dictionary.EmptyString, this.ValidTo.
ToUniversalTime
().Ticks);
755
XmlUtil.WriteElementContentAsInt64(dicWriter, dictionary.KeyEffectiveTime, dictionary.EmptyString, this.KeyEffectiveTime.
ToUniversalTime
().Ticks);
756
XmlUtil.WriteElementContentAsInt64(dicWriter, dictionary.KeyExpiryTime, dictionary.EmptyString, this.KeyExpirationTime.
ToUniversalTime
().Ticks);
System\IdentityModel\Tokens\X509SecurityToken.cs (2)
85
this.effectiveTime = this.certificate.NotBefore.
ToUniversalTime
();
96
this.expirationTime = this.certificate.NotAfter.
ToUniversalTime
();
System.IdentityModel.Selectors (1)
infocard\client\System\IdentityModel\Selectors\InfoCardProofToken.cs (1)
39
m_expiration = expiration.
ToUniversalTime
();
System.Management (1)
ManagementDatetime.cs (1)
269
date = date.
ToUniversalTime
();
System.Messaging (1)
System\Messaging\MessageQueueCriteria.cs (1)
305
time = time.
ToUniversalTime
();
System.Runtime.Serialization (1)
System\Runtime\Serialization\Json\JsonWriterDelegator.cs (1)
222
writer.WriteValue((value.
ToUniversalTime
().Ticks - JsonGlobals.unixEpochTicks) / 10000);
System.ServiceModel (40)
System\ServiceModel\Dispatcher\XPathMessageContext.cs (1)
418
date = date.
ToUniversalTime
();
System\ServiceModel\Security\IssuanceTokenProviderBase.cs (5)
307
if (serviceToken.ValidTo.
ToUniversalTime
() >= SecurityUtils.MaxUtcDateTime)
312
TimeSpan interval = serviceToken.ValidTo.
ToUniversalTime
() - serviceToken.ValidFrom.
ToUniversalTime
();
315
DateTime effectiveExpirationTime = TimeoutHelper.Add(serviceToken.ValidFrom.
ToUniversalTime
(), new TimeSpan(effectiveTicksInterval));
316
DateTime maxCachingTime = TimeoutHelper.Add(serviceToken.ValidFrom.
ToUniversalTime
(), this.MaxServiceTokenCachingTime);
System\ServiceModel\Security\RequestSecurityTokenResponse.cs (6)
168
this.effectiveTime = validFrom.
ToUniversalTime
();
169
this.expirationTime = validTo.
ToUniversalTime
();
496
if (validFrom.
ToUniversalTime
() > validTo.
ToUniversalTime
())
500
this.effectiveTime = validFrom.
ToUniversalTime
();
501
this.expirationTime = validTo.
ToUniversalTime
();
System\ServiceModel\Security\SecurityContextTokenCache.cs (9)
190
if (token.ValidTo <= expirationTime.
ToUniversalTime
())
250
if (sct1.ValidFrom.
ToUniversalTime
() < sct2.ValidFrom.
ToUniversalTime
())
254
else if (sct1.ValidFrom.
ToUniversalTime
() > sct2.ValidFrom.
ToUniversalTime
())
261
if (sct1.KeyEffectiveTime.
ToUniversalTime
() < sct2.KeyEffectiveTime.
ToUniversalTime
())
265
else if (sct1.KeyEffectiveTime.
ToUniversalTime
() > sct2.KeyEffectiveTime.
ToUniversalTime
())
System\ServiceModel\Security\SecurityUtils.cs (2)
332
return (curEffectiveTime.
ToUniversalTime
() <= curTime) && (curTime < curExpirationTime.
ToUniversalTime
());
System\ServiceModel\Security\Tokens\SecurityContextCookieSerializer.cs (4)
185
XmlHelper.WriteElementContentAsInt64(writer, dictionary.EffectiveTime, dictionary.EmptyString, tokenEffectiveTime.
ToUniversalTime
().Ticks);
186
XmlHelper.WriteElementContentAsInt64(writer, dictionary.ExpiryTime, dictionary.EmptyString, tokenExpirationTime.
ToUniversalTime
().Ticks);
187
XmlHelper.WriteElementContentAsInt64(writer, dictionary.KeyEffectiveTime, dictionary.EmptyString, keyEffectiveTime.
ToUniversalTime
().Ticks);
188
XmlHelper.WriteElementContentAsInt64(writer, dictionary.KeyExpiryTime, dictionary.EmptyString, keyExpirationTime.
ToUniversalTime
().Ticks);
System\ServiceModel\Security\Tokens\SecurityContextSecurityToken.cs (4)
251
DateTime tokenEffectiveTimeUtc = validFrom.
ToUniversalTime
();
252
DateTime tokenExpirationTimeUtc = validTo.
ToUniversalTime
();
260
this.keyEffectiveTime = keyEffectiveTime.
ToUniversalTime
();
261
this.keyExpirationTime = keyExpirationTime.
ToUniversalTime
();
System\ServiceModel\Security\WrappedTokenCache.cs (1)
147
if (token.ValidTo <= expirationTime.
ToUniversalTime
())
System\ServiceModel\Security\WSTrust.cs (6)
384
WSUtilitySpecificationVersion.AcceptedDateTimeFormats, DateTimeFormatInfo.InvariantInfo, DateTimeStyles.None).
ToUniversalTime
();
390
WSUtilitySpecificationVersion.AcceptedDateTimeFormats, DateTimeFormatInfo.InvariantInfo, DateTimeStyles.None).
ToUniversalTime
();
1189
effectiveTime = rstr.ValidFrom.
ToUniversalTime
();
1190
expirationTime = rstr.ValidTo.
ToUniversalTime
();
1194
effectiveTime = rstr.RequestedSecurityToken.ValidFrom.
ToUniversalTime
();
1195
expirationTime = rstr.RequestedSecurityToken.ValidTo.
ToUniversalTime
();
System\ServiceModel\Security\WSUtilitySpecificationVersion.cs (2)
101
DateTime creationTimeUtc = reader.ReadContentAsDateTime().
ToUniversalTime
();
108
expiryTimeUtc = reader.ReadContentAsDateTime().
ToUniversalTime
();
System.ServiceModel.Web (5)
System\ServiceModel\Dispatcher\HelpExampleGenerator.cs (1)
509
context.writer.WriteValue((dateTime.
ToUniversalTime
().Ticks - JsonGlobals.unixEpochTicks) / 10000);
System\ServiceModel\Web\HttpDateParse.cs (1)
441
dtOut = dtOut.
ToUniversalTime
();
System\ServiceModel\Web\IncomingWebRequestContext.cs (2)
191
long ticksDifference = lastModified.
ToUniversalTime
().Ticks - ifModifiedSince.Value.
ToUniversalTime
().Ticks;
System\ServiceModel\Web\OutgoingWebResponseContext.cs (1)
75
value.
ToUniversalTime
().ToString("R", CultureInfo.InvariantCulture));
System.Web (21)
httpserverutility.cs (2)
1515
dt = dt.
ToUniversalTime
();
1525
dt = dt.
ToUniversalTime
();
Profile\HttpProfileBase.cs (2)
645
_LastActivityDate = p.LastActivityDate.
ToUniversalTime
();
646
_LastUpdatedDate = p.LastUpdatedDate.
ToUniversalTime
();
Profile\ProfileInfo.cs (2)
38
lastActivityDate = lastActivityDate.
ToUniversalTime
();
42
lastUpdatedDate = lastUpdatedDate.
ToUniversalTime
();
Profile\SqlProfileProvider.cs (4)
392
cmd.Parameters.Add(CreateInputParam("@InactiveSinceDate", SqlDbType.DateTime, userInactiveSinceDate.
ToUniversalTime
()));
426
cmd.Parameters.Add(CreateInputParam("@InactiveSinceDate", SqlDbType.DateTime, userInactiveSinceDate.
ToUniversalTime
()));
457
args[0] = CreateInputParam("@InactiveSinceDate", SqlDbType.DateTime, userInactiveSinceDate.
ToUniversalTime
());
477
args[1] = CreateInputParam("@InactiveSinceDate", SqlDbType.DateTime, userInactiveSinceDate.
ToUniversalTime
());
Security\FormsAuthenticationTicket.cs (2)
135
get { return (_ExpirationUtcHasValue) ? _ExpirationUtc : Expiration.
ToUniversalTime
(); }
139
get { return (_IssueDateUtcHasValue) ? _IssueDateUtc : IssueDate.
ToUniversalTime
(); }
Security\SQLMembershipProvider.cs (2)
830
cmd.Parameters.Add(CreateInputParam("@LastLoginDate", SqlDbType.DateTime, user.LastLoginDate.
ToUniversalTime
()));
831
cmd.Parameters.Add(CreateInputParam("@LastActivityDate", SqlDbType.DateTime, user.LastActivityDate.
ToUniversalTime
()));
StaticFileHandler.cs (1)
56
DateTime utcLastModified = lastModified.
ToUniversalTime
();
UI\WebParts\PersonalizationStateInfo.cs (1)
23
_lastUpdatedDate = lastUpdatedDate.
ToUniversalTime
();
UI\WebParts\SqlPersonalizationProvider.cs (3)
235
parameter.Value = inactiveSinceDate.
ToUniversalTime
();
414
parameter.Value = inactiveSinceDate.
ToUniversalTime
();
825
parameter.Value = userInactiveSinceDate.
ToUniversalTime
();
UI\WebParts\UserPersonalizationStateInfo.cs (1)
25
_lastActivityDate = lastActivityDate.
ToUniversalTime
();
Util\DateTimeUtil.cs (1)
43
return localTime.
ToUniversalTime
();
System.Web.ApplicationServices (11)
Security\MembershipUser.cs (11)
68
set { _LastLoginDate = value.
ToUniversalTime
(); } }
73
set { _LastActivityDate = value.
ToUniversalTime
(); } }
84
return LastActivityDate.
ToUniversalTime
() > dt;
146
_CreationDate = creationDate.
ToUniversalTime
();
147
_LastLoginDate = lastLoginDate.
ToUniversalTime
();
148
_LastActivityDate = lastActivityDate.
ToUniversalTime
();
149
_LastPasswordChangedDate = lastPasswordChangedDate.
ToUniversalTime
();
150
_LastLockoutDate = lastLockoutDate.
ToUniversalTime
();
341
_LastPasswordChangedDate = mu.LastPasswordChangedDate.
ToUniversalTime
();
350
_CreationDate = mu.CreationDate.
ToUniversalTime
();
353
_LastLockoutDate = mu.LastLockoutDate.
ToUniversalTime
();
System.Web.Extensions (4)
Script\Serialization\JavaScriptSerializer.cs (2)
218
sb.Append((datetime.
ToUniversalTime
().Ticks - DatetimeMinTimeTicks) / 10000);
225
sb.Append((datetime.
ToUniversalTime
().Ticks - DatetimeMinTimeTicks) / 10000);
Script\Serialization\ObjectConverter.cs (1)
374
s = ((DateTime)o).
ToUniversalTime
().ToString("u", CultureInfo.InvariantCulture);
Script\Services\WebServiceClientProxyGenerator.cs (1)
55
if (lastModifiedDate.
ToUniversalTime
() < DateTime.UtcNow) {
System.Xml (4)
System\Xml\Schema\DataTypeImplementation.cs (2)
1849
dateTime1 = dateTime1.
ToUniversalTime
();
1850
return dateTime1.CompareTo(dateTime2.
ToUniversalTime
());
System\Xml\Schema\XsdDateTime.cs (1)
656
return dt.
ToUniversalTime
();
System\Xml\XmlConvert.cs (1)
1364
return value.
ToUniversalTime
();
WindowsBase (1)
Base\MS\Internal\IO\Packaging\PartBasedPackageProperties.cs (1)
897
_xmlWriter.WriteString(XmlConvert.ToString(((Nullable<DateTime>)entry.Value).Value.
ToUniversalTime
(), "yyyy-MM-ddTHH:mm:ss.fffffffZ"));