函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:kernel\time\timeconv.c Create Date:2022-07-27 11:44:50
Last Modify:2020-03-12 14:18:49 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:me64_to_tm - converts the calendar time to local broken-down time*@totalsecs the number of seconds elapsed since 00:00:00 on January 1, 1970,* Coordinated Universal Time (UTC)

函数原型:void time64_to_tm(time64_t totalsecs, int offset, struct tm *result)

返回类型:void

参数:

类型参数名称
time64_ttotalsecs
intoffset
struct tm *result
84  days等于div_s64_rem - signed 64bit divide with 64bit divisor and remainder*@dividend: 64bit dividend*@divisor: 64bit divisor*@remainder: 64bit remainder
85  rem等于remainder
86  rem加等于offset
87 rem小于0循环
88  rem加等于SECS_PER_DAY
89  days先自减
91 rem大于等于SECS_PER_DAY循环
92  rem减等于SECS_PER_DAY
93  days先自加
96  he number of hours past midnight, in the range 0 to 23 等于remSECS_PER_HOUR
97  rem取模等于SECS_PER_HOUR
98  he number of minutes after the hour, in the range 0 to 59等于rem除60
99  he number of seconds after the minute, normally in the range* 0 to 59, but can be up to 60 to allow for leap seconds等于rem取模60
102  he number of days since Sunday, in the range 0 to 6 等于4加days的和取模7
103  如果he number of days since Sunday, in the range 0 to 6 小于0则he number of days since Sunday, in the range 0 to 6 加等于7
106  y等于1970
108 days小于0或days大于等于如果Nonzero if YEAR is a leap year (every 4 years,* except every 100th isn't, and every 400th is).则366否则365循环
110  yg等于ydo a mathdiv for long type
113  days减等于ygy的差乘365加How many leap years between y1 and y2, y1 must less or equal to y2
114  y等于yg
117  he number of years since 1900 等于y减1900
119  he number of days since January 1, in the range 0 to 365 等于days
121  ip等于How many days come before each month (0-12). [Nonzero if YEAR is a leap year (every 4 years,* except every 100th isn't, and every 400th is).]
122 days小于ip[y]循环继续下一循环
124  days减等于ip[y]
126  he number of months since January, in the range 0 to 11 等于y
127  he day of the month, in the range 1 to 31 等于days加1
调用者
名称描述
kdb_summarykdb_summary - This function implements the 'summary' command.
tomoyo_convert_timemoyo_convert_time - Convert time_t to YYYY/MM/DD hh/mm/ss.*@time: Seconds since 1970/01/01 00:00:00.*@stamp: Pointer to "struct tomoyo_time".* Returns nothing.
mnt_warn_timestamp_expiry