Home
last modified time | relevance | path

Searched refs:use_ampm (Results 1 – 6 of 6) sorted by relevance

/freebsd-src/sys/dev/iicbus/rtc/
H A Disl12xx.c126 bool use_ampm; member
262 sc->use_ampm = true; in isl12xx_gettime()
276 return (clock_bcd_to_ts(&bct, ts, sc->use_ampm)); in isl12xx_gettime()
294 clock_ts_to_bcd(ts, &bct, sc->use_ampm); in isl12xx_settime()
298 if (!sc->use_ampm) in isl12xx_settime()
H A Dds13rtc.c167 bool use_ampm; /* Use AM/PM mode. */ member
333 sc->use_ampm = true; in ds13rtc_start()
376 if (sc->use_ampm) in ds13rtc_gettime()
398 err = clock_bcd_to_ts(&bct, ts, sc->use_ampm); in ds13rtc_gettime()
424 clock_ts_to_bcd(ts, &bct, sc->use_ampm); in ds13rtc_settime()
429 if (sc->use_ampm) { in ds13rtc_settime()
H A Dnxprtc.c213 bool use_ampm; /* Chip is set to use am/pm mode */ member
530 sc->use_ampm = true; in pcf8523_start()
548 sc->use_ampm = true; in pcf8523_start()
770 if (sc->use_ampm) in nxprtc_gettime()
799 err = clock_bcd_to_ts(&bct, ts, sc->use_ampm); in nxprtc_gettime()
838 clock_ts_to_bcd(ts, &bct, sc->use_ampm); in nxprtc_settime()
/freebsd-src/usr.bin/w/
H A Dpr_time.c71 fmt = use_ampm ? L"%a%I%p" : L"%a%H"; in pr_attime()
76 fmt = use_ampm ? L"%l:%M%p" : L"%k:%M"; in pr_attime()
H A Dextern.h32 extern int use_ampm;
H A Dw.c90 int use_ampm; /* use AM/PM time */ variable
146 use_ampm = (*nl_langinfo(T_FMT_AMPM) != '\0'); in main()
487 use_ampm ? "%l:%M%p" : "%k:%M", localtime(nowp)) != 0) in pr_header()