removed gmt_off in FromDateTime

This commit is contained in:
2023-07-21 20:38:51 +08:00
parent c6a8a466d6
commit be9ec89452
2 changed files with 2 additions and 3 deletions

View File

@@ -168,7 +168,7 @@ namespace hgl
* @return 转换出的值 * @return 转换出的值
*/ */
double FromDateTime(const int year,const int month,const int day, double FromDateTime(const int year,const int month,const int day,
const int hour,const int minute=0,const int second=0,const int micro_second=0,const int gmt_off=0); const int hour,const int minute=0,const int second=0,const int micro_second=0);
/** /**
* 根据Date/Time转换出以秒为单位的时间值 * 根据Date/Time转换出以秒为单位的时间值

View File

@@ -342,7 +342,6 @@ namespace hgl
double FromDateTime(const Date &d,const Time &t) double FromDateTime(const Date &d,const Time &t)
{ {
return FromDateTime(d.GetYear(),d.GetMonth(),d.GetDay(), return FromDateTime(d.GetYear(),d.GetMonth(),d.GetDay(),
t.GetHour(),t.GetMinute(),t.GetSecond(),t.GetMicroSecond(), t.GetHour(),t.GetMinute(),t.GetSecond(),t.GetMicroSecond());
t.GetGMT());
} }
}//namespace hgl }//namespace hgl