102 references to ToLocalTime
mscorlib (11)
system\datetime.cs (1)
758
return FromFileTimeUtc(fileTime).
ToLocalTime
();
system\datetimeoffset.cs (1)
199
return UtcDateTime.
ToLocalTime
();
system\io\file.cs (3)
512
return InternalGetCreationTimeUtc(path, true).
ToLocalTime
();
576
return InternalGetLastAccessTimeUtc(path, true).
ToLocalTime
();
640
return InternalGetLastWriteTimeUtc(path, true).
ToLocalTime
();
system\io\filesysteminfo.cs (3)
157
return CreationTimeUtc.
ToLocalTime
();
202
return LastAccessTimeUtc.
ToLocalTime
();
244
return LastWriteTimeUtc.
ToLocalTime
();
system\io\longpath.cs (3)
338
DateTime dtLocal = DateTime.FromFileTimeUtc(data.ftCreationTime.ToTicks()).
ToLocalTime
();
358
DateTime dtLocal = DateTime.FromFileTimeUtc(data.ftLastAccessTime.ToTicks()).
ToLocalTime
();
378
DateTime dtLocal = DateTime.FromFileTimeUtc(data.ftLastWriteTime.ToTicks()).
ToLocalTime
();
System (9)
net\System\Net\_FtpControlStream.cs (1)
922
dateTime = dateTime.
ToLocalTime
(); // must be handled in local time
net\System\Net\_HTTPDateParse.cs (1)
457
dtOut = dtOut.
ToLocalTime
();
net\System\Net\Cache\RequestCachePolicy.cs (1)
245
return m_LastSyncDateUtc.
ToLocalTime
();}
net\System\Net\cookie.cs (2)
220
return (m_expires != DateTime.MinValue) && (m_expires.
ToLocalTime
() <= DateTime.Now);
792
int seconds = (int) (Expires.
ToLocalTime
() - DateTime.Now).TotalSeconds;
net\System\Net\FtpWebRequest.cs (2)
2082
ctx.CacheEntry.LastModifiedUtc == DateTime.MinValue? DateTime.Now: ctx.CacheEntry.LastModifiedUtc.
ToLocalTime
(),
2149
ctx.CacheEntry.LastModifiedUtc == DateTime.MinValue? DateTime.Now: ctx.CacheEntry.LastModifiedUtc.
ToLocalTime
(),
services\monitoring\system\diagnosticts\EventLogEntry.cs (2)
336
return beginningOfTime.AddSeconds(IntFrom(dataBuf, bufOffset + FieldOffsets.TIMEGENERATED)).
ToLocalTime
();
350
return beginningOfTime.AddSeconds(IntFrom(dataBuf, bufOffset + FieldOffsets.TIMEWRITTEN)).
ToLocalTime
();
System.Activities.Presentation (6)
System.Activities.Presentation\System\Activities\Presentation\View\DesignerView.Commands.cs (1)
522
System.Diagnostics.Debug.WriteLine(string.Format(CultureInfo.InvariantCulture, "{0} DesignerView.OnWorkflowViewContextMenuLoaded()", DateTime.Now.
ToLocalTime
()));
System.Activities.Presentation\System\Activities\Presentation\View\DesignerView.xaml.cs (1)
653
DateTime.Now.
ToLocalTime
(), (null == this.FocusedViewElement ? "<null>" : this.FocusedViewElement.GetType().Name), e.OriginalSource));
System.Activities.Presentation\System\Activities\Presentation\WorkflowViewElement.cs (4)
547
DateTime.Now.
ToLocalTime
(), this.GetType().Name, selection.SelectionCount, becomesSelection, e.OriginalSource));
642
DateTime.Now.
ToLocalTime
(), this.GetType().Name, shouldSetFocus, this.IsMouseCaptured, e.OriginalSource));
650
DateTime.Now.
ToLocalTime
(), this.GetType().Name));
814
DateTime.Now.
ToLocalTime
(), this.GetType().Name, this.IsMouseCaptured));
System.Core (1)
System\Security\Cryptography\X509Certificates\TimestampInformation.cs (1)
98
return m_timestamp.
ToLocalTime
();
System.Data (10)
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\View\DesignerView.Commands.cs (1)
522
System.Diagnostics.Debug.WriteLine(string.Format(CultureInfo.InvariantCulture, "{0} DesignerView.OnWorkflowViewContextMenuLoaded()", DateTime.Now.
ToLocalTime
()));
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\View\DesignerView.xaml.cs (1)
653
DateTime.Now.
ToLocalTime
(), (null == this.FocusedViewElement ? "<null>" : this.FocusedViewElement.GetType().Name), e.OriginalSource));
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\WorkflowViewElement.cs (4)
547
DateTime.Now.
ToLocalTime
(), this.GetType().Name, selection.SelectionCount, becomesSelection, e.OriginalSource));
642
DateTime.Now.
ToLocalTime
(), this.GetType().Name, shouldSetFocus, this.IsMouseCaptured, e.OriginalSource));
650
DateTime.Now.
ToLocalTime
(), this.GetType().Name));
814
DateTime.Now.
ToLocalTime
(), this.GetType().Name, this.IsMouseCaptured));
fx\src\data\System\Data\Common\DateTimeStorage.cs (3)
160
retVal = tmpValue.
ToLocalTime
();
231
values[i] = DateTime.SpecifyKind(values[i].
ToLocalTime
(), DateTimeKind.Unspecified); //Strip the kind for UnspecifiedLocal.
238
values[i] = values[i].
ToLocalTime
();
fx\src\data\System\Data\Common\ObjectStorage.cs (1)
444
values[i] = (DateTime.SpecifyKind(dt, DateTimeKind.Utc)).
ToLocalTime
();
System.Messaging (4)
System\Messaging\Message.cs (2)
432
time = time.AddSeconds(properties.GetUI4(NativeMethods.MESSAGE_PROPID_ARRIVEDTIME)).
ToLocalTime
();
1622
time = time.AddSeconds(properties.GetUI4(NativeMethods.MESSAGE_PROPID_SENTTIME)).
ToLocalTime
();
System\Messaging\MessageQueue.cs (2)
482
this.createTime = time.AddSeconds(properties.GetI4(NativeMethods.QUEUE_PROPID_CREATE_TIME)).
ToLocalTime
();
795
this.lastModifyTime = time.AddSeconds(properties.GetI4(NativeMethods.QUEUE_PROPID_MODIFY_TIME)).
ToLocalTime
();
System.Runtime.Serialization (6)
System\Runtime\Serialization\Json\JsonReaderDelegator.cs (2)
238
return dateTime.
ToLocalTime
();
240
return DateTime.SpecifyKind(dateTime.
ToLocalTime
(), DateTimeKind.Unspecified);
System\Runtime\Serialization\Json\JsonWriterDelegator.cs (2)
232
ts = TimeZoneInfo.Local.GetUtcOffset(value.
ToLocalTime
());
236
ts = TimeZone.CurrentTimeZone.GetUtcOffset(value.
ToLocalTime
());
System\Xml\XmlConverter.cs (2)
836
value = value.Add(ts).
ToLocalTime
();
840
value = value.
ToLocalTime
().Add(ts);
System.ServiceModel (2)
System\ServiceModel\MsmqIntegration\MsmqIntegrationInputMessage.cs (2)
91
property.ArrivedTime = MsmqDateTime.ToDateTime(this.arrivedTime.Value).
ToLocalTime
();
110
property.SentTime = MsmqDateTime.ToDateTime(this.sentTime.Value).
ToLocalTime
();
System.ServiceModel.Web (2)
System\ServiceModel\Dispatcher\HelpExampleGenerator.cs (1)
515
TimeSpan ts = TimeZone.CurrentTimeZone.GetUtcOffset(dateTime.
ToLocalTime
());
System\ServiceModel\Web\HttpDateParse.cs (1)
465
dtOut = dtOut.
ToLocalTime
();
System.Web (42)
HttpContext.cs (1)
1391
get { return _utcTimestamp.
ToLocalTime
();}
Management\WebEvents.cs (1)
206
public DateTime EventTime { get { return _eventTimeUtc.
ToLocalTime
(); } }
Profile\HttpProfileBase.cs (2)
161
return _LastActivityDate.
ToLocalTime
();
168
return _LastUpdatedDate.
ToLocalTime
();
Profile\ProfileInfo.cs (2)
52
public virtual DateTime LastActivityDate { get { return _LastActivityDate.
ToLocalTime
();} }
53
public virtual DateTime LastUpdatedDate { get { return _LastUpdatedDate.
ToLocalTime
(); } }
Security\ADMembershipProvider.cs (1)
2797
DateTime whenCreated = ((DateTime) PropertyManager.GetSearchResultPropertyValue(res, "whenCreated")).
ToLocalTime
();
Security\FormsAuthenticationTicket.cs (2)
229
FormsAuthenticationTicket ticket = new FormsAuthenticationTicket(version, name, issueDateUtc.
ToLocalTime
(), expirationUtc.
ToLocalTime
(), isPersistent, userData, cookiePath);
Security\FormsAuthenticationTicketSerializer.cs (2)
70
DateTime ticketIssueDateLocal = ticketIssueDateUtc.
ToLocalTime
();
83
DateTime ticketExpirationDateLocal = ticketExpirationDateUtc.
ToLocalTime
();
Security\RolePrincipal.cs (2)
215
public DateTime ExpireDate { get { return _ExpireDate.
ToLocalTime
();}}
216
public DateTime IssueDate { get { return _IssueDate.
ToLocalTime
();}}
Security\SQLMembershipProvider.cs (26)
401
dt = dt.
ToLocalTime
();
956
DateTime dtCreate = reader.GetDateTime(4).
ToLocalTime
();
957
DateTime dtLastLogin = reader.GetDateTime(5).
ToLocalTime
();
958
DateTime dtLastActivity = reader.GetDateTime(6).
ToLocalTime
();
959
DateTime dtLastPassChange = reader.GetDateTime(7).
ToLocalTime
();
962
DateTime dtLastLockoutDate = reader.GetDateTime(10).
ToLocalTime
();
1045
DateTime dtCreate = reader.GetDateTime(4).
ToLocalTime
();
1046
DateTime dtLastLogin = reader.GetDateTime(5).
ToLocalTime
();
1047
DateTime dtLastActivity = reader.GetDateTime(6).
ToLocalTime
();
1048
DateTime dtLastPassChange = reader.GetDateTime(7).
ToLocalTime
();
1051
DateTime dtLastLockoutDate = reader.GetDateTime(10).
ToLocalTime
();
1260
dtCreate = reader.GetDateTime(5).
ToLocalTime
();
1261
dtLastLogin = reader.GetDateTime(6).
ToLocalTime
();
1262
dtLastActivity = reader.GetDateTime(7).
ToLocalTime
();
1263
dtLastPassChange = reader.GetDateTime(8).
ToLocalTime
();
1266
dtLastLockoutDate = reader.GetDateTime(11).
ToLocalTime
();
1399
dtCreate = reader.GetDateTime(5).
ToLocalTime
();
1400
dtLastLogin = reader.GetDateTime(6).
ToLocalTime
();
1401
dtLastActivity = reader.GetDateTime(7).
ToLocalTime
();
1402
dtLastPassChange = reader.GetDateTime(8).
ToLocalTime
();
1405
dtLastLockoutDate = reader.GetDateTime(11).
ToLocalTime
();
1495
dtCreate = reader.GetDateTime(5).
ToLocalTime
();
1496
dtLastLogin = reader.GetDateTime(6).
ToLocalTime
();
1497
dtLastActivity = reader.GetDateTime(7).
ToLocalTime
();
1498
dtLastPassChange = reader.GetDateTime(8).
ToLocalTime
();
1501
dtLastLockoutDate = reader.GetDateTime(11).
ToLocalTime
();
UI\WebParts\PersonalizationStateInfo.cs (1)
35
return _lastUpdatedDate.
ToLocalTime
();
UI\WebParts\UserPersonalizationStateInfo.cs (1)
36
return _lastActivityDate.
ToLocalTime
();
Util\DateTimeUtil.cs (1)
55
return utcTime.
ToLocalTime
();
System.Web.ApplicationServices (5)
Security\MembershipUser.cs (5)
59
get { return _LastLockoutDate.
ToLocalTime
(); }
63
get { return _CreationDate.
ToLocalTime
(); }
67
get { return _LastLoginDate.
ToLocalTime
(); }
72
get { return _LastActivityDate.
ToLocalTime
(); }
77
get { return _LastPasswordChangedDate.
ToLocalTime
(); }
System.Workflow.Runtime (1)
Hosting\SqlWorkflowPersistenceService.cs (1)
1007
WorkflowTrace.Host.TraceEvent(TraceEventType.Information, 0, "SqlWorkflowPersistenceService({4}):Committing instance {0}, Blocked={1}, Unlocked={2}, NextTimer={3}", contextGuid.ToString(), item.Blocked, item.Unlocked, item.NextTimer.Value.
ToLocalTime
(), _serviceInstanceId.ToString());
System.Xml (3)
System\Xml\Schema\XsdDateTime.cs (2)
412
result = new DateTime(ticks, DateTimeKind.Utc).
ToLocalTime
();
425
result = new DateTime(ticks, DateTimeKind.Utc).
ToLocalTime
();
System\Xml\XmlConvert.cs (1)
1350
return value.
ToLocalTime
();