Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:kernel\time\timeconv.c Create Date:2022-07-28 10:44:55
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:How many leap years between y1 and y2, y1 must less or equal to y2

Proto:static long leaps_between(long y1, long y2)

Type:long

Parameter:

TypeParameterName
longy1
longy2
52  leaps1 = do a mathdiv for long type - do a mathdiv for long type + do a mathdiv for long type
54  leaps2 = do a mathdiv for long type - do a mathdiv for long type + do a mathdiv for long type
56  Return leaps2 - leaps1
Caller
NameDescribe
time64_to_tmme64_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)