Lines Matching defs:ltm
110 in_ltm(const login_time_t *ltm, struct tm *tt, time_t *ends)
116 if ((u_char)(0x01 << tt->tm_wday) & ltm->lt_dow) {
122 if (now >= ltm->lt_start && now < ltm->lt_end) {
126 tt->tm_hour = (int)(ltm->lt_end / 60);
127 tt->tm_min = (int)(ltm->lt_end % 60);
138 in_lt(const login_time_t *ltm, time_t *t)
141 return (in_ltm(ltm, localtime(t), t));
145 in_ltms(const login_time_t *ltm, struct tm *tm, time_t *t)
149 while (i < LC_MAXTIMES && ltm[i].lt_dow != LTM_NONE) {
150 if (in_ltm(ltm + i, tm, t))
158 in_lts(const login_time_t *ltm, time_t *t)
161 return (in_ltms(ltm, localtime(t), t));