Remove external links in comments

This commit is contained in:
obdev
2023-03-13 08:11:16 +00:00
committed by ob-robot
parent a1c0fb9d36
commit 4ae800e828
2 changed files with 1 additions and 2 deletions

View File

@ -1840,7 +1840,6 @@ int ob_atoll(const char *str, int64_t &res)
return ret; return ret;
} }
//ref: https://www.cnblogs.com/westfly/p/5139645.html
struct tm *ob_localtime(const time_t *unix_sec, struct tm *result) struct tm *ob_localtime(const time_t *unix_sec, struct tm *result)
{ {
static const int HOURS_IN_DAY = 24; static const int HOURS_IN_DAY = 24;

View File

@ -1235,7 +1235,7 @@ int ob_atoll(const char *str, int64_t &res);
int ob_strtoll(const char *str, char *&endptr, int64_t &res); int ob_strtoll(const char *str, char *&endptr, int64_t &res);
int ob_strtoull(const char *str, char *&endptr, uint64_t &res); int ob_strtoull(const char *str, char *&endptr, uint64_t &res);
/* 功能:根据localtime计算公式实现快速计算的方法, 替代系统函数localtime_r. 参考https://www.cnblogs.com/westfly/p/5139645.html , 调整计算逻辑, 加上时区偏移的考虑. /* 功能:根据localtime计算公式实现快速计算的方法, 替代系统函数localtime_r.
参数: 参数:
in: const time_t *unix_sec, 当前的时间戳(单位秒), 输入值 in: const time_t *unix_sec, 当前的时间戳(单位秒), 输入值
out: struct tm *result, 当前时间戳对应的可读时间localtime, 输出值 out: struct tm *result, 当前时间戳对应的可读时间localtime, 输出值