/// <summary>
        /// 将日期转换为特定时区
        /// </summary>
        /// <param name="date">date to convert</param>
        /// <param name="destinationTimeZoneName">destination date timezone name</param>
        /// <returns>date on especific timezone</returns>
        public static DateTime ToTimezoneDate(this DateTime date, string destinationTimeZoneName)
        {
            var destinationTimezone = BaseDateTimeExtensions.GetTimezoneInfo(destinationTimeZoneName);

            return(date.ToTimezoneDate(BaseDateTimeExtensions.GetDefaultTimezoneInfo(), destinationTimezone));
        }
        /// <summary>
        ///将日期转换为unix时间戳
        /// </summary>
        /// <param name="date">date to convert</param>
        /// <returns>unix timestamp</returns>
        public static long ToUnixTimestamp(this DateTime date)
        {
            var timezoneInfo = BaseDateTimeExtensions.GetDefaultTimezoneInfo();

            return(date.ToUnixTimestamp(timezoneInfo));
        }
 /// <summary>
 /// 将日期转换为特定时区
 /// </summary>
 /// <param name="date">date to convert</param>
 /// <param name="destinationTimeZoneInfo">destination date timezone info</param>
 /// <returns>date on especific timezone</returns>
 public static DateTime ToTimezoneDate(this DateTime date, TimeZoneInfo destinationTimeZoneInfo)
 {
     return(date.ToTimezoneDate(BaseDateTimeExtensions.GetDefaultTimezoneInfo(), destinationTimeZoneInfo));
 }
        /// <summary>
        /// 将日期转换为Utc日期
        /// </summary>
        /// <param name="date">date to convert</param>
        /// <returns>utc date</returns>
        public static DateTime ToUtc(this DateTime date)
        {
            var timezoneInfo = BaseDateTimeExtensions.GetDefaultTimezoneInfo();

            return(date.ToUtc(timezoneInfo));
        }