From 6fc7f86a89dbcbe1e36ade37c61d4a974be81596 Mon Sep 17 00:00:00 2001 From: Eugen Wissner Date: Wed, 19 Jun 2024 12:11:56 +0200 Subject: Implement CanNTP property --- src/timedate.h | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'src/timedate.h') diff --git a/src/timedate.h b/src/timedate.h index 49883f9..40f149a 100644 --- a/src/timedate.h +++ b/src/timedate.h @@ -34,9 +34,12 @@ namespace dlackware::timedate // Returns if the hardware clock is set to local time or not bool local_rtc(); - // Returns if NTP is enabled + // Returns whether NTP is enabled. bool ntp(); + // Returns whether NTP is available. + bool can_ntp(); + // Returns the timezones available on the system. std::vector list_timezones(); -- cgit v1.2.3