.NETFramework:DateTimeOffset
ylbtech-System.DateTimeOffset.cs |
表示一个时间点,通常相对于协调世界时(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.dll
#endregion using System.Globalization;
using System.Runtime.Serialization; namespace System
{
public struct DateTimeOffset : IComparable, IFormattable, ISerializable, IDeserializationCallback, IComparable<DateTimeOffset>, IEquatable<DateTimeOffset>
{
public static readonly DateTimeOffset 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, int month, 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的更多相关文章
- .NETFramework:Random
ylbtech-.NETFramework:Random 1.程序集 mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c ...
- .NETFramework:ConfigurationManager
ylbtech-.NETFramework:ConfigurationManager 1.程序集 System.Configuration, Version=4.0.0.0, Culture=neut ...
- .NETFramework:StringBuilder
ylbtech-.NETFramework:StringBuilder 1.程序集 mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken ...
- .NETFramework:WebClient
ylbtech-.NETFramework:WebClient 1.程序集 System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5 ...
- .NETFramework:Timers
ylbtech-.NETFramework:Timers 1.返回顶部 1. #region 程序集 System, Version=4.0.0.0, Culture=neutral, PublicK ...
- .NETFramework:Stream
ylbtech-.NETFramework:Stream 1.返回顶部 1. #region 程序集 mscorlib, Version=4.0.0.0, Culture=neutral, Publi ...
- .NETFramework:HttpContext
ylbtech-.NETFramework:HttpContext 1.返回顶部 1. #region 程序集 System.Web, Version=4.0.0.0, Culture=neutral ...
- .NETFramework:Encoding
ylbtech-.NETFramework:Encoding 1.返回顶部 1. #region 程序集 mscorlib, Version=4.0.0.0, Culture=neutral, Pub ...
- .NETFramework:HttpRuntime
ylbtech-.NETFramework:HttpRuntime 1.返回顶部 1. #region 程序集 System.Web, Version=4.0.0.0, Culture=neutral ...
随机推荐
- javaScript 深层复制
在工作中遇到了深浅复制的问题,所以详细总结一下: 深复制和浅复制只针对像 Object, Array 这样的复杂对象的.简单来说,浅复制只复制一层对象的属性,而深复制则递归复制了所有层级. var o ...
- Android中RelativeLayout各个属性及其含义
android:layout_above="@id/xxx" --将控件置于给定ID控件之上android:layout_below="@id/xxx" - ...
- 网卡配置bond
在实际的生产环境中,服务器都需要配置bond环境的,以提高安全性及均衡能力.我公司网卡配置的是mode=1 类型,mode=1 是主备模式,当其中一块网卡不能工作时,另一块网卡立即代替.以下是mode ...
- tp框架知识 之(链接数据库和操作数据内容)
框架有时会用到数据库的内容,在"ThinkPhp框架知识"的那篇随笔中提到过,现在这篇随笔详细的描述下. 一.链接数据库 (1)找到模块文件夹中的Conf文件夹,然后进行编写con ...
- 九度OJ 1014:排名 (排序)
时间限制:1 秒 内存限制:32 兆 特殊判题:否 提交:8267 解决:2469 题目描述: 今天的上机考试虽然有实时的Ranklist,但上面的排名只是根据完成的题数排序,没有考虑每题的分 ...
- new() 和 make() 的区别
https://github.com/Unknwon/the-way-to-go_ZH_CN/blob/master/eBook/07.2.md
- RANDOM 的用法
random 用法 1.利用RANDOM取随机数 shell有一个环境变量RANDOM,范围是0--32767 如果我们想要产生0-25范围内的数:$(($RANDOM%26),在$(()) 是可以省 ...
- Linux入门基础(三)——系统命令
- System.Configuration.ConfigurationErrorsException: An error occurred creating the configuration sect
An error has occurred creating the configuration section handler for userSettings/Microsoft.SqlServe ...
- Compiling: main.cpp /bin/sh: g++: not found
Kbuntu用codeblocks编写C程序的时候,编译报错如下: Compiling: main.cpp/bin/sh: g++: not found 解决方法: sudo apt-get inst ...