在Git源代码的date.c文件中,我注意到特殊时间名称的以下结构:
static const struct special {
const char *name;
void (*fn)(struct tm *, struct tm *, int *);
} special[] = {
{ "yesterday", date_yesterday },
{ "noon", date_noon },
{ "midnight", date_midnight },
{ "tea", date_tea },
{ "PM", date_pm },
{ "AM", date_am },
{ "never", date_never },
{ "now", date_now },
{ NULL }
};
我了解其中大多数的实用程序(但有些实用),但是为什么要花一些时间(计算时间为17:00小时)?这只是某种复活节彩蛋吗?