diff options
Diffstat (limited to 'sys/kern/subr_clock.c')
| -rw-r--r-- | sys/kern/subr_clock.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/sys/kern/subr_clock.c b/sys/kern/subr_clock.c index 9b4b057e82a1..7586402124ec 100644 --- a/sys/kern/subr_clock.c +++ b/sys/kern/subr_clock.c @@ -197,3 +197,10 @@ clock_ts_to_ct(struct timespec *ts, struct clocktime *ct) ct->sec = rsec; ct->nsec = ts->tv_nsec; } + +int +utc_offset(void) +{ + + return (tz_minuteswest * 60 + (wall_cmos_clock ? adjkerntz : 0)); +} |
