cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\WorkflowViewElement.cs (4)
547DateTime.Now.ToLocalTime(), this.GetType().Name, selection.SelectionCount, becomesSelection, e.OriginalSource));
642DateTime.Now.ToLocalTime(), this.GetType().Name, shouldSetFocus, this.IsMouseCaptured, e.OriginalSource));
650DateTime.Now.ToLocalTime(), this.GetType().Name));
814DateTime.Now.ToLocalTime(), this.GetType().Name, this.IsMouseCaptured));
fx\src\data\Microsoft\SqlServer\Server\SmiMetaData.cs (2)
78internal static readonly DateTime MaxSmallDateTime = new DateTime(2079, 06, 06, 23, 59, 29, 998);
79internal static readonly DateTime MinSmallDateTime = new DateTime(1899, 12, 31, 23, 59, 29, 999);
fx\src\data\Microsoft\SqlServer\Server\ValueUtilsSmi.cs (19)
189internal static DateTime GetDateTime( SmiEventSink_Default sink, ITypedGettersV3 getters, int ordinal, SmiMetaData metaData ) {
198return (DateTime) result;
442DateTime temp = GetDateTime_Unchecked( sink, getters, ordinal );
1402internal static void SetDateTime( SmiEventSink_Default sink, ITypedSettersV3 setters, int ordinal, SmiMetaData metaData, DateTime value ) {
1598case ExtendedClrTypeCode.DateTime: SetDateTime_Checked( sink, setters, ordinal, metaData, (DateTime)value ); break;
1665SetDateTime2_Checked(sink, setters, ordinal, metaData, (DateTime)value);
1667SetDate_Checked(sink, setters, ordinal, metaData, (DateTime)value);
1669SetDateTime_Checked(sink, setters, ordinal, metaData, (DateTime)value);
2418private static readonly DateTime x_dtSmallMax = new DateTime(2079, 06, 06, 23, 59, 29, 998);
2419private static readonly DateTime x_dtSmallMin = new DateTime(1899, 12, 31, 23, 59, 29, 999);
2420private static void VerifyDateTimeRange(SqlDbType dbType, DateTime value) {
2434private static void SetDateTime_Checked(SmiEventSink_Default sink, ITypedSettersV3 setters, int ordinal, SmiMetaData metaData, DateTime value) {
2451private static void SetDateTime2_Checked(SmiEventSink_Default sink, ITypedSettersV3 setters, int ordinal, SmiMetaData metaData, DateTime value)
2457private static void SetDate_Checked(SmiEventSink_Default sink, ITypedSettersV3 setters, int ordinal, SmiMetaData metaData, DateTime value)
3082private static DateTime GetDateTime_Unchecked( SmiEventSink_Default sink, ITypedGettersV3 getters, int ordinal ) {
3085DateTime result = getters.GetDateTime( sink, ordinal );
3316private static void SetDateTime_Unchecked( SmiEventSink_Default sink, ITypedSettersV3 setters, int ordinal, DateTime value ) {
3321private static void SetDateTime2_Unchecked(SmiEventSink_Default sink, ITypedSettersV3 setters, int ordinal, SmiMetaData metaData, DateTime value)
3329private static void SetDate_Unchecked(SmiEventSink_Default sink, ITypedSettersV3 setters, int ordinal, SmiMetaData metaData, DateTime value)
fx\src\data\System\Data\Common\DateTimeStorage.cs (32)
18private static readonly DateTime defaultValue = DateTime.MinValue;
20private DateTime[] values;
23: base(column, typeof(DateTime), defaultValue, StorageType.DateTime) {
31DateTime min = DateTime.MaxValue;
35min=(DateTime.Compare(values[record],min) < 0) ? values[record] : min;
45DateTime max = DateTime.MinValue;
49max=(DateTime.Compare(values[record],max) >= 0) ? values[record] : max;
75throw ExprException.Overflow(typeof(DateTime));
81DateTime valueNo1 = values[recordNo1];
82DateTime valueNo2 = values[recordNo2];
90return DateTime.Compare(valueNo1, valueNo2);
101DateTime valueNo1 = values[recordNo];
105return DateTime.Compare(valueNo1, (DateTime)value);
127DateTime value = values[record];
141DateTime retVal;
142DateTime tmpValue = ((IConvertible)value).ToDateTime(FormatProvider);
152retVal = DateTime.SpecifyKind(tmpValue, DateTimeKind.Utc);
163retVal = DateTime.SpecifyKind(tmpValue, DateTimeKind.Local);
168retVal = DateTime.SpecifyKind(tmpValue, DateTimeKind.Unspecified);
179DateTime[] newValues = new DateTime[capacity];
201retValue = XmlConvert.ToString((DateTime)value, XmlDateTimeSerializationMode.Local);
204retValue = XmlConvert.ToString((DateTime)value, XmlDateTimeSerializationMode.RoundtripKind);
210return new DateTime[recordCount];
214DateTime[] typedStore = (DateTime[]) store;
226values = (DateTime[]) store;
231values[i] = DateTime.SpecifyKind(values[i].ToLocalTime(), DateTimeKind.Unspecified); //Strip the kind for UnspecifiedLocal.
fx\src\data\System\Data\Filter\FunctionNode.cs (3)
37new Function("DateTimeOffset", FunctionId.DateTimeOffset, typeof(DateTimeOffset), false, true, 3, typeof(DateTime), typeof(int), typeof(int)),
457switch (((DateTime)argumentValues[0]).Kind) {
480return new DateTimeOffset((DateTime)argumentValues[0], new TimeSpan((int)argumentValues[1], (int)argumentValues[2], 0));
fx\src\data\System\Data\Odbc\Odbc32.cs (3)
780static private readonly TypeMap _DateTime = new TypeMap(OdbcType.DateTime, DbType.DateTime, typeof(DateTime), ODBC32.SQL_TYPE.TYPE_TIMESTAMP, ODBC32.SQL_C.TYPE_TIMESTAMP, ODBC32.SQL_C.TYPE_TIMESTAMP, 16, 23, false);
781static private readonly TypeMap _Date = new TypeMap(OdbcType.Date, DbType.Date, typeof(DateTime), ODBC32.SQL_TYPE.TYPE_DATE, ODBC32.SQL_C.TYPE_DATE, ODBC32.SQL_C.TYPE_DATE, 6, 10, false);
794static private readonly TypeMap _SmallDT = new TypeMap(OdbcType.SmallDateTime, DbType.DateTime, typeof(DateTime), ODBC32.SQL_TYPE.TYPE_TIMESTAMP, ODBC32.SQL_C.TYPE_TIMESTAMP, ODBC32.SQL_C.TYPE_TIMESTAMP, 16, 23, false);
fx\src\data\System\Data\OleDb\OLEDB_Enum.cs (4)
163static private readonly NativeDBType D_Date = new NativeDBType(0xff, 8, true, false, OleDbType.Date, NativeDBType.DATE, S_DATE, typeof(System.DateTime), NativeDBType.DATE, DbType.DateTime ); // 5 - double
164static private readonly NativeDBType D_DBDate = new NativeDBType(0xff, 6, true, false, OleDbType.DBDate, NativeDBType.DBDATE, S_DBDATE, typeof(System.DateTime), NativeDBType.DBDATE, DbType.Date ); // 6 - (tagDBDate)
166static private readonly NativeDBType D_DBTimeStamp = new NativeDBType(0xff, 16, true, false, OleDbType.DBTimeStamp, NativeDBType.DBTIMESTAMP, S_DBTIMESTAMP, typeof(System.DateTime), NativeDBType.DBTIMESTAMP, DbType.DateTime ); // 8 - (tagDBTIMESTAMP)
169static private readonly NativeDBType D_Filetime = new NativeDBType(0xff, 8, true, false, OleDbType.Filetime, NativeDBType.FILETIME, S_FILETIME, typeof(System.DateTime), NativeDBType.FILETIME, DbType.DateTime ); // 11 - integer8 // MDAC 59504
fx\src\data\System\Data\Sql\SqlMetaData.cs (6)
781public DateTime Adjust(DateTime value) {
1051case TypeCode.DateTime: value = this.Adjust((DateTime)value); break;
1446private static readonly DateTime x_dtSmallMax = new DateTime(2079, 06, 06, 23, 59, 29, 998);
1447private static readonly DateTime x_dtSmallMin = new DateTime(1899, 12, 31, 23, 59, 29, 999);
1448void VerifyDateTimeRange(DateTime value)
fx\src\data\System\Data\SqlClient\SqlEnums.cs (11)
406else if (sqlType == typeof(DateTime)) return DBNull.Value;
520else if (comVal is DateTime) {
522sqlVal = new SqlDateTime((DateTime)comVal);
791(23, 3, 8, true, false, false, TdsEnums.SQLDATETIME, TdsEnums.SQLDATETIMN, MetaTypeName.DATETIME, typeof(System.DateTime), typeof(SqlDateTime), SqlDbType.DateTime, DbType.DateTime, 0);
794(16, 0, 4, true, false, false, TdsEnums.SQLDATETIM4, TdsEnums.SQLDATETIMN, MetaTypeName.SMALLDATETIME, typeof(System.DateTime), typeof(SqlDateTime), SqlDbType.SmallDateTime, DbType.DateTime, 0);
823(255, 255, 3, true, false, false, TdsEnums.SQLDATE, TdsEnums.SQLDATE, MetaTypeName.DATE, typeof(System.DateTime), typeof(System.DateTime), SqlDbType.Date, DbType.Date, 0);
829(255, 7, -1, false, false, false, TdsEnums.SQLDATETIME2, TdsEnums.SQLDATETIME2, MetaTypeName.DATETIME2, typeof(System.DateTime), typeof(System.DateTime), SqlDbType.DateTime2, DbType.DateTime2, 1);
834public static TdsDateTime FromDateTime(DateTime dateTime, byte cb) {
856public static DateTime ToDateTime(int sqlDays, int sqlTime, int length) {
fx\src\data\System\Data\SqlClient\SqlInternalConnectionTds.cs (6)
2233TimeSpan contextValidity = dbConnectionPoolAuthenticationContext.ExpirationTime.Subtract(DateTime.UtcNow);
2238Bid.Trace("<sc.SqlInternalConnectionTds.OnFedAuthInfo> %d#, The expiration time is less than 10 mins, so trying to get new access token regardless of if an other thread is also trying to update it.The expiration time is %s. Current Time is %s.\n", ObjectID, dbConnectionPoolAuthenticationContext.ExpirationTime.ToLongTimeString(), DateTime.UtcNow.ToLongTimeString());
2257Bid.Trace("<sc.SqlInternalConnectionTds.OnFedAuthInfo> %d#, The authentication context needs a refresh.The expiration time is %s. Current Time is %s.\n", ObjectID, dbConnectionPoolAuthenticationContext.ExpirationTime.ToLongTimeString(), DateTime.UtcNow.ToLongTimeString());
2331Bid.Trace("<sc.SqlInternalConnectionTds.TryGetFedAuthTokenLocked> %d#, Acquired the lock to update the authentication context.The expiration time is %s. Current Time is %s.\n", ObjectID, dbConnectionPoolAuthenticationContext.ExpirationTime.ToLongTimeString(), DateTime.UtcNow.ToLongTimeString());
2479DateTime expirationTime = DateTime.FromFileTimeUtc(fedAuthToken.expirationFileTime);
fx\src\data\System\Data\SqlClient\TdsParser.cs (16)
5928TdsDateTime dt = MetaType.FromDateTime((DateTime)value, 8);
6087TdsDateTime dt = MetaType.FromDateTime((DateTime)value, 8);
6137internal void WriteSqlVariantDateTime2(DateTime value, TdsParserStateObject stateObj)
6146internal void WriteSqlVariantDate(DateTime value, TdsParserStateObject stateObj)
6249private byte[] SerializeDate(DateTime value) {
6250long days = value.Subtract(DateTime.MinValue).Days;
6254private void WriteDate(DateTime value, TdsParserStateObject stateObj) {
6255long days = value.Subtract(DateTime.MinValue).Days;
6281private byte[] SerializeDateTime2(DateTime value, byte scale, int length) {
6302private void WriteDateTime2(DateTime value, byte scale, int length, TdsParserStateObject stateObj) {
10655TdsDateTime dt = MetaType.FromDateTime((DateTime)value, (byte)type.FixedLength);
10677WriteDate((DateTime)value, stateObj);
10692WriteDateTime2((DateTime)value, scale, actualLength, stateObj);
10842TdsDateTime dt = MetaType.FromDateTime((DateTime)value, (byte)type.FixedLength);
10886return SerializeDate((DateTime)value);
10899return SerializeDateTime2((DateTime)value, scale, actualLength);
fx\src\data\System\Data\SQLTypes\SQLDateTime.cs (18)
67private static readonly DateTime SQLBaseDate = new DateTime(1900, 1, 1);
86private static readonly DateTime MinDateTime = new DateTime(1753, 1, 1);
87private static readonly DateTime MaxDateTime = DateTime.MaxValue;
114public SqlDateTime(DateTime value) {
224private static DateTime ToDateTime(SqlDateTime value) {
229internal static DateTime ToDateTime(int daypart, int timepart) {
236DateTime result = new DateTime(SQLBaseDateTicks + dayticks + timeticks);
267private static SqlDateTime FromDateTime(DateTime value) {
275if (value == DateTime.MaxValue)
299public DateTime Value {
329public static implicit operator SqlDateTime(DateTime value) {
334public static explicit operator DateTime(SqlDateTime x) {
342DateTime dateTime = ToDateTime(this);
347DateTime dt;
353dt = DateTime.Parse(s, CultureInfo.InvariantCulture);
357dt = DateTime.ParseExact(s, x_DateTimeFormats, dtfi, x_DateTimeStyle);
633DateTime dt = XmlConvert.ToDateTime(reader.ReadElementString(), XmlDateTimeSerializationMode.RoundtripKind);
fx\src\data\System\Data\XDRSchema.cs (5)
221new NameType("date" , typeof(DateTime)), /* XDR */
222new NameType("dateTime" , typeof(DateTime)), /* XDR */
223new NameType("dateTime.tz" , typeof(DateTime)), /* XDR */
244new NameType("time" , typeof(DateTime)), /* XDR */
245new NameType("time.tz" , typeof(DateTime)), /* XDR */
fx\src\data\System\Data\XMLSchema.cs (8)
1572new NameType("date" , typeof(DateTime)), /* XSD Apr */
1573new NameType("dateTime" , typeof(DateTime)), /* XSD Apr */
1578new NameType("gDay" , typeof(DateTime)), /* XSD Apr */
1579new NameType("gMonth" , typeof(DateTime)), /* XSD Apr */
1580new NameType("gMonthDay" , typeof(DateTime)), /* XSD Apr */
1581new NameType("gYear" , typeof(DateTime)), /* XSD Apr */
1582new NameType("gYearMonth" , typeof(DateTime)), /* XSD Apr */
1595new NameType("time" , typeof(DateTime)), /* XSD Apr */
System\IdentityModel\Claims\WindowsClaimSet.cs (8)
21DateTime expirationTime;
34: this(windowsIdentity, includeWindowsGroups, DateTime.UtcNow.AddHours(10))
38public WindowsClaimSet(WindowsIdentity windowsIdentity, DateTime expirationTime)
43public WindowsClaimSet(WindowsIdentity windowsIdentity, bool includeWindowsGroups, DateTime expirationTime)
48public WindowsClaimSet(WindowsIdentity windowsIdentity, string authenticationType, bool includeWindowsGroups, DateTime expirationTime)
54: this( windowsIdentity, authenticationType, includeWindowsGroups, DateTime.UtcNow.AddHours( 10 ), clone )
58internal WindowsClaimSet(WindowsIdentity windowsIdentity, string authenticationType, bool includeWindowsGroups, DateTime expirationTime, bool clone)
117public DateTime ExpirationTime
System\IdentityModel\SamlDelegatingWriter.cs (3)
154public override void WriteArray(string prefix, string localName, string namespaceUri, DateTime[] array, int offset, int count)
204public override void WriteArray(string prefix, XmlDictionaryString localName, XmlDictionaryString namespaceUri, DateTime[] array, int offset, int count)
426public override void WriteValue(DateTime value)
System\IdentityModel\Tokens\SamlSecurityTokenHandler.cs (17)
48static DateTime WCFMinValue = new DateTime(DateTime.MinValue.Ticks + TimeSpan.TicksPerDay, DateTimeKind.Utc);
49static DateTime WCFMaxValue = new DateTime(DateTime.MaxValue.Ticks - TimeSpan.TicksPerDay, DateTimeKind.Utc);
237return new SamlAssertion(System.IdentityModel.UniqueId.CreateRandomId(), issuer, DateTime.UtcNow, conditions, advice, statements);
390DateTime authInstantTime = DateTime.ParseExact(authenticationInstant,
854protected virtual DateTime GetTokenReplayCacheEntryExpirationTime(SamlSecurityToken token)
864DateTime maximumExpirationTime = DateTimeUtil.Add(DateTime.UtcNow, Configuration.TokenReplayCacheExpirationPeriod);
867if (DateTime.Compare(maximumExpirationTime, token.ValidTo) < 0)
891DateTime now = DateTime.UtcNow;
1804assertion.IssueInstant = DateTime.ParseExact(
1925conditions.NotBefore = DateTime.ParseExact(
1932conditions.NotOnOrAfter = DateTime.ParseExact(
2861authnStatement.AuthenticationInstant = DateTime.ParseExact(
System\IdentityModel\Tokens\SessionSecurityToken.cs (35)
58DateTime _keyEffectiveTime;
59DateTime _keyExpirationTime;
63DateTime _validFrom;
64DateTime _validTo;
83: this(claimsPrincipal, null, DateTime.UtcNow, DateTimeUtil.AddNonNegative(DateTime.UtcNow, lifetime))
93: this(claimsPrincipal, context, DateTime.UtcNow, DateTimeUtil.AddNonNegative(DateTime.UtcNow, SessionSecurityTokenHandler.DefaultTokenLifetime))
103public SessionSecurityToken(ClaimsPrincipal claimsPrincipal, string context, DateTime? validFrom, DateTime? validTo)
115public SessionSecurityToken(ClaimsPrincipal claimsPrincipal, string context, string endpointId, DateTime? validFrom, DateTime? validTo)
135: this(claimsPrincipal, contextId, context, endpointId, DateTime.UtcNow, lifetime, key)
154DateTime validFrom,
183DateTime? validFrom,
184DateTime? validTo,
213DateTime? validFrom,
214DateTime? validTo,
216DateTime? keyEffectiveTime,
217DateTime? keyExpirationTime,
239DateTime validFromEffective;
240DateTime validToEffective;
248validFromEffective = DateTime.UtcNow;
265if (validToEffective < DateTime.UtcNow)
277keyEffectiveTime = (DateTime?)validFromEffective;
282keyExpirationTime = (DateTime?)validToEffective;
465DateTime effectiveTime = new DateTime(XmlUtil.ReadElementContentAsInt64(reader), DateTimeKind.Utc);
471DateTime expiryTime = new DateTime(XmlUtil.ReadElementContentAsInt64(reader), DateTimeKind.Utc);
477DateTime keyEffectiveTime = new DateTime(XmlUtil.ReadElementContentAsInt64(reader), DateTimeKind.Utc);
483DateTime keyExpiryTime = new DateTime(XmlUtil.ReadElementContentAsInt64(reader), DateTimeKind.Utc);
575public DateTime KeyEffectiveTime
583public DateTime KeyExpirationTime
662public override DateTime ValidFrom
670public override DateTime ValidTo
1062rnd = new Random(unchecked((int)DateTime.Now.Ticks));
System\IdentityModel\Tokens\WindowsSecurityToken.cs (11)
18DateTime effectiveTime;
19DateTime expirationTime;
35DateTime effectiveTime = DateTime.UtcNow;
36Initialize( id, authenticationType, effectiveTime, DateTime.UtcNow.AddHours( 10 ), windowsIdentity, true );
43protected void Initialize(string id, DateTime effectiveTime, DateTime expirationTime, WindowsIdentity windowsIdentity, bool clone)
48protected void Initialize(string id, string authenticationType, DateTime effectiveTime, DateTime expirationTime, WindowsIdentity windowsIdentity, bool clone)
74public override DateTime ValidFrom
79public override DateTime ValidTo
System\ServiceModel\Security\Tokens\SecurityContextCookieSerializer.cs (10)
41DateTime effectiveTime = SecurityUtils.MinUtcDateTime;
42DateTime expiryTime = SecurityUtils.MaxUtcDateTime;
46DateTime keyEffectiveTime = SecurityUtils.MinUtcDateTime;
47DateTime keyExpirationTime = SecurityUtils.MaxUtcDateTime;
150public byte[] CreateCookieFromSecurityContext(UniqueId contextId, string id, byte[] key, DateTime tokenEffectiveTime,
151DateTime tokenExpirationTime, UniqueId keyGeneration, DateTime keyEffectiveTime, DateTime keyExpirationTime,
261DateTime expirationTime;
263public SctUnconditionalPolicy(IList<IIdentity> identities, IList<ClaimSet> claimSets, DateTime expirationTime)
System\ServiceModel\Security\Tokens\SecurityContextSecurityToken.cs (39)
20DateTime keyEffectiveTime;
21DateTime keyExpirationTime;
22DateTime tokenEffectiveTime;
23DateTime tokenExpirationTime;
33public SecurityContextSecurityToken(UniqueId contextId, byte[] key, DateTime validFrom, DateTime validTo)
37public SecurityContextSecurityToken(UniqueId contextId, string id, byte[] key, DateTime validFrom, DateTime validTo)
41public SecurityContextSecurityToken(UniqueId contextId, string id, byte[] key, DateTime validFrom, DateTime validTo, ReadOnlyCollection<IAuthorizationPolicy> authorizationPolicies)
48public SecurityContextSecurityToken(UniqueId contextId, string id, byte[] key, DateTime validFrom, DateTime validTo, UniqueId keyGeneration, DateTime keyEffectiveTime, DateTime keyExpirationTime, ReadOnlyCollection<IAuthorizationPolicy> authorizationPolicies)
60internal SecurityContextSecurityToken(SecurityContextSecurityToken sourceToken, string id, byte[] key, UniqueId keyGeneration, DateTime keyEffectiveTime, DateTime keyExpirationTime, ReadOnlyCollection<IAuthorizationPolicy> authorizationPolicies)
69internal SecurityContextSecurityToken(UniqueId contextId, string id, byte[] key, DateTime validFrom, DateTime validTo, ReadOnlyCollection<IAuthorizationPolicy> authorizationPolicies, bool isCookieMode, byte[] cookieBlob)
74internal SecurityContextSecurityToken(UniqueId contextId, string id, byte[] key, DateTime validFrom, DateTime validTo, ReadOnlyCollection<IAuthorizationPolicy> authorizationPolicies, bool isCookieMode, byte[] cookieBlob,
75UniqueId keyGeneration, DateTime keyEffectiveTime, DateTime keyExpirationTime)
139public DateTime KeyEffectiveTime
147public DateTime KeyExpirationTime
177public override DateTime ValidFrom
182public override DateTime ValidTo
209DateTime TimeBoundedCache.IExpirableItem.ExpirationTime
238void Initialize(UniqueId contextId, byte[] key, DateTime validFrom, DateTime validTo, ReadOnlyCollection<IAuthorizationPolicy> authorizationPolicies, bool isCookieMode,
239UniqueId keyGeneration, DateTime keyEffectiveTime, DateTime keyExpirationTime)
251DateTime tokenEffectiveTimeUtc = validFrom.ToUniversalTime();
252DateTime tokenExpirationTimeUtc = validTo.ToUniversalTime();
308DateTime validFrom, DateTime validTo, ReadOnlyCollection<IAuthorizationPolicy> authorizationPolicies, SecurityStateEncoder securityStateEncoder)
315DateTime validFrom, DateTime validTo, UniqueId keyGeneration, DateTime keyEffectiveTime,
316DateTime keyExpirationTime, ReadOnlyCollection<IAuthorizationPolicy> authorizationPolicies, SecurityStateEncoder securityStateEncoder)
Cache\cache.cs (12)
49out object expensiveObject, out CacheDependency dependency, out DateTime absoluteExpiration, out TimeSpan slidingExpiration);
174public static readonly DateTime NoAbsoluteExpiration = DateTime.MaxValue;
365DateTime absoluteExpiration;
421public void Insert(string key, object value, CacheDependency dependencies, DateTime absoluteExpiration, TimeSpan slidingExpiration) {
422DateTime utcAbsoluteExpiration = DateTimeUtil.ConvertToUniversalTime(absoluteExpiration);
434DateTime absoluteExpiration,
439DateTime utcAbsoluteExpiration = DateTimeUtil.ConvertToUniversalTime(absoluteExpiration);
455DateTime absoluteExpiration,
465DateTime utcAbsoluteExpiration = DateTimeUtil.ConvertToUniversalTime(absoluteExpiration);
498DateTime absoluteExpiration,
503DateTime utcAbsoluteExpiration = DateTimeUtil.ConvertToUniversalTime(absoluteExpiration);
Cache\CacheDependency.cs (37)
51DateTime _utcLastModified; // Time of last modified item
97Init(true, null, null, null, DateTime.MaxValue);
106this (filename, DateTime.MaxValue) {
110public CacheDependency(string filename, DateTime start) {
115DateTime utcStart = DateTimeUtil.ConvertToUniversalTime(start);
127Init(true, filenames, null, null, DateTime.MaxValue);
131public CacheDependency(string[] filenames, DateTime start) {
132DateTime utcStart = DateTimeUtil.ConvertToUniversalTime(start);
142Init(true, filenames, cachekeys, null, DateTime.MaxValue);
146public CacheDependency(string[] filenames, string[] cachekeys, DateTime start) {
147DateTime utcStart = DateTimeUtil.ConvertToUniversalTime(start);
153Init(true, filenames, cachekeys, dependency, DateTime.MaxValue);
157public CacheDependency(string[] filenames, string[] cachekeys, CacheDependency dependency, DateTime start) {
158DateTime utcStart = DateTimeUtil.ConvertToUniversalTime(start);
163this(dummy, filename, DateTime.MaxValue) {
166internal CacheDependency(int dummy, string filename, DateTime utcStart) {
177Init(false, filenames, null, null, DateTime.MaxValue);
180internal CacheDependency(int dummy, string[] filenames, DateTime utcStart) {
185Init(false, filenames, cachekeys, null, DateTime.MaxValue);
188internal CacheDependency(int dummy, string[] filenames, string[] cachekeys, DateTime utcStart) {
193Init(false, filenames, cachekeys, dependency, DateTime.MaxValue);
196internal CacheDependency(int dummy, string[] filenames, string[] cachekeys, CacheDependency dependency, DateTime utcStart) {
304void Init(bool isPublic, string[] filenamesArg, string[] cachekeysArg, CacheDependency dependency, DateTime utcStart) {
333_utcLastModified = DateTime.MinValue;
379DateTime d_lastModified = dependency._utcLastModified;
469DateTime utcNow = DateTime.MinValue;
471DateTime utcLastWrite = fmon.StartMonitoringPath(f, handler, out myDepFileInfos[i]._fad);
480if (utcStart < DateTime.MaxValue) {
481if (utcNow == DateTime.MinValue) {
482utcNow = DateTime.UtcNow;
505DateTime lastUpdated;
697public DateTime UtcLastModified {
703protected void SetUtcLastModified(DateTime utcLastModified) {
826_utcLastModified = DateTime.UtcNow;
960DateTime utcLastModified = DateTime.MinValue;
HttpResponse.cs (15)
102DateTime _expiresAbsolute;
810double seconds = (_cachePolicy.UtcGetAbsoluteExpiration() - DateTime.UtcNow).TotalSeconds;
961internal void AddFileDependencies(string[] filenames, DateTime utcTime) {
2159_expiresAbsolute = DateTime.MinValue;
3151public DateTime ExpiresAbsolute {
3545private DateTime _oldestDependency;
3559DateTime utcNow = DateTime.UtcNow;
3565if (_oldestDependency == DateTime.MinValue || utcNow < _oldestDependency)
3583AddDependencies(items, argname, cloneArray, DateTime.UtcNow);
3591AddDependencies(items, argname, cloneArray, DateTime.UtcNow);
3594internal void AddDependencies(string[] items, string argname, bool cloneArray, DateTime utcDepTime) {
3623if (_oldestDependency == DateTime.MinValue || utcDepTime < _oldestDependency)
3701internal readonly DateTime utcDate;
3703internal ResponseDependencyInfo(string[] items, DateTime utcDate) {
ProcessInfo.cs (4)
101public DateTime StartTime { get { return _StartTime;}}
130private DateTime _StartTime;
142public void SetAll (DateTime startTime, TimeSpan age, int processID, int requestCount, ProcessStatus status,
158public ProcessInfo (DateTime startTime, TimeSpan age, int processID, int requestCount, ProcessStatus status,
Profile\ProfileProvider.cs (4)
31public abstract int DeleteInactiveProfiles (ProfileAuthenticationOption authenticationOption, DateTime userInactiveSinceDate);
32public abstract int GetNumberOfInactiveProfiles (ProfileAuthenticationOption authenticationOption, DateTime userInactiveSinceDate);
35public abstract ProfileInfoCollection GetAllInactiveProfiles (ProfileAuthenticationOption authenticationOption, DateTime userInactiveSinceDate, int pageIndex, int pageSize, out int totalRecords);
37public abstract ProfileInfoCollection FindInactiveProfilesByUserName(ProfileAuthenticationOption authenticationOption, string usernameToMatch, DateTime userInactiveSinceDate, int pageIndex, int pageSize, out int totalRecords);
Profile\SqlProfileProvider.cs (9)
169cmd.Parameters.Add(CreateInputParam("@CurrentTimeUtc", SqlDbType.DateTime, DateTime.UtcNow));
238cmd.Parameters.Add(CreateInputParam("@CurrentTimeUtc", SqlDbType.DateTime, DateTime.UtcNow));
377public override int DeleteInactiveProfiles(ProfileAuthenticationOption authenticationOption, DateTime userInactiveSinceDate)
411public override int GetNumberOfInactiveProfiles(ProfileAuthenticationOption authenticationOption, DateTime userInactiveSinceDate)
454public override ProfileInfoCollection GetAllInactiveProfiles(ProfileAuthenticationOption authenticationOption, DateTime userInactiveSinceDate, int pageIndex, int pageSize, out int totalRecords)
472public override ProfileInfoCollection FindInactiveProfilesByUserName(ProfileAuthenticationOption authenticationOption, string usernameToMatch, DateTime userInactiveSinceDate, int pageIndex, int pageSize, out int totalRecords)
522DateTime dtLastActivity, dtLastUpdated;
527dtLastActivity = DateTime.SpecifyKind(reader.GetDateTime(2), DateTimeKind.Utc);
528dtLastUpdated = DateTime.SpecifyKind(reader.GetDateTime(3), DateTimeKind.Utc);
Security\ADMembershipProvider.cs (29)
116private readonly DateTime DefaultLastLockoutDate = new DateTime(1754, 1, 1, 0, 0, 0, DateTimeKind.Utc);
2637DateTime currentTime = DateTime.UtcNow;
2640DateTime lastBadPasswordAnswerTime = GetDateTimeFromLargeInteger((NativeComInterfaces.IAdsLargeInteger) PropertyManager.GetPropertyValue(userEntry, attributeMapFailedPasswordAnswerTime));
2735DateTime lockoutTime = DateTime.FromFileTimeUtc((Int64) PropertyManager.GetSearchResultPropertyValue(res, "lockoutTime"));
2736DateTime currentTime = DateTime.UtcNow;
2759DateTime lastLockoutDate = DefaultLastLockoutDate;
2761lastLockoutDate = DateTime.FromFileTime((Int64) PropertyManager.GetSearchResultPropertyValue(res, "lockoutTime"));
2769DateTime badPasswordAnswerLockoutTime = DateTime.FromFileTimeUtc((Int64) PropertyManager.GetSearchResultPropertyValue(res, attributeMapFailedPasswordAnswerLockoutTime));
2770DateTime currentTime = DateTime.UtcNow;
2782if (DateTime.Compare(badPasswordAnswerLockoutTime, DateTime.FromFileTimeUtc((Int64) PropertyManager.GetSearchResultPropertyValue(res, "lockoutTime"))) > 0)
2783lastLockoutDate = DateTime.FromFileTime((Int64) PropertyManager.GetSearchResultPropertyValue(res, attributeMapFailedPasswordAnswerLockoutTime));
2791lastLockoutDate = DateTime.FromFileTime((Int64) PropertyManager.GetSearchResultPropertyValue(res, attributeMapFailedPasswordAnswerLockoutTime));
2797DateTime whenCreated = ((DateTime) PropertyManager.GetSearchResultPropertyValue(res, "whenCreated")).ToLocalTime();
2800DateTime lastLogon = DateTime.MinValue;
2803DateTime lastActivity = DateTime.MinValue;
2806DateTime lastPasswordChange = DateTime.FromFileTime((Int64) PropertyManager.GetSearchResultPropertyValue(res, "pwdLastSet"));
3364private DateTime GetDateTimeFromLargeInteger(NativeComInterfaces.IAdsLargeInteger largeIntValue)
3374return DateTime.FromFileTimeUtc(int64Value);
3378private NativeComInterfaces.IAdsLargeInteger GetLargeIntegerFromDateTime(DateTime dateTimeValue)
Security\FormsAuthenticationTicket.cs (17)
44public DateTime Expiration { get { return _Expiration;}}
50public DateTime IssueDate { get { return _IssueDate;}}
68return (ExpirationUtc < DateTime.UtcNow);
134internal DateTime ExpirationUtc {
138internal DateTime IssueDateUtc {
144private DateTime _Expiration;
145private DateTime _IssueDate;
164private DateTime _ExpirationUtc;
168private DateTime _IssueDateUtc;
177DateTime issueDate,
178DateTime expiration,
193DateTime issueDate,
194DateTime expiration,
218_IssueDateUtc = DateTime.UtcNow;
219_IssueDate = DateTime.Now;
228internal static FormsAuthenticationTicket FromUtc(int version, String name, DateTime issueDateUtc, DateTime expirationUtc, bool isPersistent, String userData, String cookiePath) {
Security\SQLMembershipProvider.cs (37)
360DateTime dt = RoundToSeconds(DateTime.UtcNow);
630cmd.Parameters.Add(CreateInputParam("@CurrentTimeUtc", SqlDbType.DateTime, DateTime.UtcNow));
689DateTime lastLoginDate, lastActivityDate;
752cmd.Parameters.Add(CreateInputParam("@CurrentTimeUtc", SqlDbType.DateTime, DateTime.UtcNow));
833cmd.Parameters.Add(CreateInputParam("@CurrentTimeUtc", SqlDbType.DateTime, DateTime.UtcNow));
944cmd.Parameters.Add(CreateInputParam("@CurrentTimeUtc", SqlDbType.DateTime, DateTime.UtcNow));
956DateTime dtCreate = reader.GetDateTime(4).ToLocalTime();
957DateTime dtLastLogin = reader.GetDateTime(5).ToLocalTime();
958DateTime dtLastActivity = reader.GetDateTime(6).ToLocalTime();
959DateTime dtLastPassChange = reader.GetDateTime(7).ToLocalTime();
962DateTime dtLastLockoutDate = reader.GetDateTime(10).ToLocalTime();
1033cmd.Parameters.Add(CreateInputParam("@CurrentTimeUtc", SqlDbType.DateTime, DateTime.UtcNow));
1045DateTime dtCreate = reader.GetDateTime(4).ToLocalTime();
1046DateTime dtLastLogin = reader.GetDateTime(5).ToLocalTime();
1047DateTime dtLastActivity = reader.GetDateTime(6).ToLocalTime();
1048DateTime dtLastPassChange = reader.GetDateTime(7).ToLocalTime();
1051DateTime dtLastLockoutDate = reader.GetDateTime(10).ToLocalTime();
1250DateTime dtCreate, dtLastLogin, dtLastActivity, dtLastPassChange;
1253DateTime dtLastLockoutDate;
1324cmd.Parameters.Add(CreateInputParam("@CurrentTimeUtc", SqlDbType.DateTime, DateTime.UtcNow));
1389DateTime dtCreate, dtLastLogin, dtLastActivity, dtLastPassChange;
1392DateTime dtLastLockoutDate;
1485DateTime dtCreate, dtLastLogin, dtLastActivity, dtLastPassChange;
1488DateTime dtLastLockoutDate;
1558DateTime lastLoginDate, lastActivityDate;
1582DateTime dtNow = DateTime.UtcNow;
1630out DateTime lastLoginDate,
1631out DateTime lastActivityDate)
1649cmd.Parameters.Add(CreateInputParam("@CurrentTimeUtc", SqlDbType.DateTime, DateTime.UtcNow));
1678lastLoginDate = DateTime.UtcNow;
1679lastActivityDate = DateTime.UtcNow;
1730cmd.Parameters.Add(CreateInputParam("@CurrentTimeUtc", SqlDbType.DateTime, DateTime.UtcNow));
1797DateTime lastLoginDate, lastActivityDate;
1893private DateTime RoundToSeconds(DateTime utcDateTime)
UI\WebControls\Calendar.cs (47)
30ControlValueProperty("SelectedDate", typeof(DateTime), "1/1/0001"),
60private DateTime minSupportedDate;
61private DateTime maxSupportedDate;
69private static DateTime baseDate = new DateTime(2000, 1, 1);
401DefaultValue(typeof(DateTime), "1/1/0001"),
404public DateTime SelectedDate {
407return DateTime.MinValue;
412if (value == DateTime.MinValue) {
423/// <para>Gets a collection of <see cref='System.DateTime' qualify='true'/> objects representing days selected on the <see cref='System.Web.UI.WebControls.Calendar'/>. This
717public DateTime TodaysDate {
720return((o == null) ? DateTime.Today : (DateTime)o);
750DefaultValue(typeof(DateTime), "1/1/0001"),
753public DateTime VisibleDate {
756return((o == null) ? DateTime.MinValue : (DateTime)o);
900private DateTime EffectiveVisibleDate() {
901DateTime visDate = VisibleDate;
902if (visDate.Equals(DateTime.MinValue)) {
918private DateTime FirstCalendarDay(DateTime visibleDate) {
919DateTime firstDayOfMonth = visibleDate;
1005private bool IsTheSameYearMonth(DateTime date1, DateTime date2) {
1014private bool IsMinSupportedYearMonth(DateTime date) {
1021private bool IsMaxSupportedYearMonth(DateTime date) {
1140protected virtual void OnVisibleMonthChanged(DateTime newDate, DateTime previousDate) {
1166DateTime oldDate = VisibleDate;
1167if (oldDate.Equals(DateTime.MinValue)) {
1172if (VisibleDate == DateTime.MinValue) {
1192DateTime dt = baseDate.AddDays(dayDiff);
1198DateTime dt = baseDate.AddDays(dayDiff);
1230DateTime visibleDate = EffectiveVisibleDate();
1231DateTime firstDay = FirstCalendarDay(visibleDate);
1357private void RenderDayHeader(HtmlTextWriter writer, DateTime visibleDate, CalendarSelectionMode selectionMode, bool buttonsActive, bool useAccessibleHeader) {
1445private void RenderDays(HtmlTextWriter writer, DateTime firstDay, DateTime visibleDate, CalendarSelectionMode selectionMode, bool buttonsActive, bool useAccessibleHeader) {
1448DateTime d = firstDay;
1474DateTime todaysDate = TodaysDate;
1511DateTime secondLastMonth = threadCalendar.AddMonths(maxSupportedDate, -1);
1666private void RenderTitle(HtmlTextWriter writer, DateTime visibleDate, CalendarSelectionMode selectionMode, bool buttonsActive, bool useAccessibleHeader) {
1707DateTime prevMonthDate;
1714DateTime secondSupportedMonth = threadCalendar.AddMonths(minSupportedDate, 1);
1783DateTime nextMonthDate = threadCalendar.AddMonths(visibleDate, 1);
1830private void SelectRange(DateTime dateFrom, DateTime dateTo) {
UI\WebParts\SqlPersonalizationProvider.cs (16)
120DateTime lastUpdatedDate = (reader.IsDBNull(1)) ? DateTime.MinValue :
121DateTime.SpecifyKind(reader.GetDateTime(1), DateTimeKind.Utc);
175DateTime inactiveSinceDate = PersonalizationAdministration.DefaultInactiveSinceDate;
189DateTime inactiveSinceDate,
245DateTime lastUpdatedDate = DateTime.SpecifyKind(reader.GetDateTime(1), DateTimeKind.Utc);
248DateTime lastActivityDate = DateTime.SpecifyKind(reader.GetDateTime(4), DateTimeKind.Utc);
365DateTime userInactiveSinceDate = PersonalizationAdministration.DefaultInactiveSinceDate;
376private int GetCountOfUserState(string path, DateTime inactiveSinceDate, string username) {
521command.Parameters.Add(CreateParameter("@CurrentTimeUtc", SqlDbType.DateTime, DateTime.UtcNow));
597command.Parameters.Add(CreateParameter("@CurrentTimeUtc", SqlDbType.DateTime, DateTime.UtcNow));
747public override int ResetUserState(string path, DateTime userInactiveSinceDate) {
792DateTime userInactiveSinceDate,
922command.Parameters.Add(CreateParameter("@CurrentTimeUtc", SqlDbType.DateTime, DateTime.UtcNow));