示例#1
0
        private string GetStrDateTime(DateTime datetime)
        {
            string strFormat = "yyyy/MM/dd a\\t HH:mm:ss";
            string strTime   = String.Concat("(",
                                             CommonFunc.GetTimeZoneHour(TimeZoneId),
                                             "):\t",
                                             datetime.ToString(strFormat),
                                             "\r\n",
                                             "Local:\t",
                                             CommonFunc.ConvertDateTime2Local(TimeZoneId, datetime).ToString(strFormat));

            return(strTime);
        }
示例#2
0
 private void UpdateClock()
 {
     label_timezone.Content = "UTC " + CommonFunc.GetTimeZoneHour(GlobalVar._timezoneId);
     grid_clock.ToolTip     = CommonFunc.GetTimeZoneDisplayName(GlobalVar._timezoneId);
 }