.NETFramework:DateTimeOffset
阿新 • • 發佈:2018-05-26
logs only ria ide 表示 targe AC inf ddd
1、
ylbtech-.NETFramework:DateTimeOffset |
表示一個時間點,通常相對於協調世界時(UTC)的日期和時間來表示。
1.程序集 mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089返回頂部 |
#region 程序集 mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 // C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.5.2\mscorlib.dll2、#endregion using System.Globalization; using System.Runtime.Serialization; namespace System { public struct DateTimeOffset : IComparable, IFormattable, ISerializable, IDeserializationCallback, IComparable<DateTimeOffset>, IEquatable<DateTimeOffset> { public static readonlyDateTimeOffset MinValue; public static readonly DateTimeOffset MaxValue; public DateTimeOffset(DateTime dateTime); public DateTimeOffset(long ticks, TimeSpan offset); public DateTimeOffset(DateTime dateTime, TimeSpan offset); public DateTimeOffset(int year, intmonth, int day, int hour, int minute, int second, TimeSpan offset); public DateTimeOffset(int year, int month, int day, int hour, int minute, int second, int millisecond, TimeSpan offset); public DateTimeOffset(int year, int month, int day, int hour, int minute, int second, int millisecond, Calendar calendar, TimeSpan offset); public static DateTimeOffset UtcNow { get; } public static DateTimeOffset Now { get; } public DateTime DateTime { get; } public DateTime UtcDateTime { get; } public DateTime LocalDateTime { get; } public DateTime Date { get; } public int Day { get; } public DayOfWeek DayOfWeek { get; } public int Month { get; } public int Hour { get; } public int Millisecond { get; } public int Minute { get; } public TimeSpan Offset { get; } public int Second { get; } public long Ticks { get; } public long UtcTicks { get; } public int DayOfYear { get; } public TimeSpan TimeOfDay { get; } public int Year { get; } public static int Compare(DateTimeOffset first, DateTimeOffset second); public static bool Equals(DateTimeOffset first, DateTimeOffset second); public static DateTimeOffset FromFileTime(long fileTime); public static DateTimeOffset Parse(string input, IFormatProvider formatProvider); public static DateTimeOffset Parse(string input, IFormatProvider formatProvider, DateTimeStyles styles); public static DateTimeOffset Parse(string input); public static DateTimeOffset ParseExact(string input, string format, IFormatProvider formatProvider); public static DateTimeOffset ParseExact(string input, string format, IFormatProvider formatProvider, DateTimeStyles styles); public static DateTimeOffset ParseExact(string input, string[] formats, IFormatProvider formatProvider, DateTimeStyles styles); public static bool TryParse(string input, out DateTimeOffset result); public static bool TryParse(string input, IFormatProvider formatProvider, DateTimeStyles styles, out DateTimeOffset result); public static bool TryParseExact(string input, string format, IFormatProvider formatProvider, DateTimeStyles styles, out DateTimeOffset result); public static bool TryParseExact(string input, string[] formats, IFormatProvider formatProvider, DateTimeStyles styles, out DateTimeOffset result); public DateTimeOffset Add(TimeSpan timeSpan); public DateTimeOffset AddDays(double days); public DateTimeOffset AddHours(double hours); public DateTimeOffset AddMilliseconds(double milliseconds); public DateTimeOffset AddMinutes(double minutes); public DateTimeOffset AddMonths(int months); public DateTimeOffset AddSeconds(double seconds); public DateTimeOffset AddTicks(long ticks); public DateTimeOffset AddYears(int years); public int CompareTo(DateTimeOffset other); public override bool Equals(object obj); public bool Equals(DateTimeOffset other); public bool EqualsExact(DateTimeOffset other); public override int GetHashCode(); public DateTimeOffset Subtract(TimeSpan value); public TimeSpan Subtract(DateTimeOffset value); public long ToFileTime(); public DateTimeOffset ToLocalTime(); public DateTimeOffset ToOffset(TimeSpan offset); public override string ToString(); public string ToString(string format, IFormatProvider formatProvider); public string ToString(IFormatProvider formatProvider); public string ToString(string format); public DateTimeOffset ToUniversalTime(); public static DateTimeOffset operator +(DateTimeOffset dateTimeOffset, TimeSpan timeSpan); public static TimeSpan operator -(DateTimeOffset left, DateTimeOffset right); public static DateTimeOffset operator -(DateTimeOffset dateTimeOffset, TimeSpan timeSpan); public static bool operator ==(DateTimeOffset left, DateTimeOffset right); public static bool operator !=(DateTimeOffset left, DateTimeOffset right); public static bool operator <(DateTimeOffset left, DateTimeOffset right); public static bool operator >(DateTimeOffset left, DateTimeOffset right); public static bool operator <=(DateTimeOffset left, DateTimeOffset right); public static bool operator >=(DateTimeOffset left, DateTimeOffset right); public static implicit operator DateTimeOffset(DateTime dateTime); } }
2.返回頂部 |
3.返回頂部 |
4.返回頂部 |
5.返回頂部 |
6.返回頂部 |
作者:ylbtech 出處:http://ylbtech.cnblogs.com/ 本文版權歸作者和博客園共有,歡迎轉載,但未經作者同意必須保留此段聲明,且在文章頁面明顯位置給出原文連接,否則保留追究法律責任的權利。 |
.NETFramework:DateTimeOffset