* added get_timezone_offset() to kernel, which returns the offset in seconds
* made FAT add-on use get_timezone_offset(), this time correctly adjusted for the difference in units (minutes/seconds) This makes the times in our FAT-fs agree with Linux again, at least :-) git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@37905 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -13,13 +13,16 @@
|
||||
#include <time.h>
|
||||
|
||||
|
||||
struct kernel_args;
|
||||
|
||||
|
||||
#define RTC_EPOCH_BASE_YEAR 1970
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
status_t rtc_init(kernel_args *args);
|
||||
status_t rtc_init(struct kernel_args *args);
|
||||
bigtime_t rtc_boot_time(void);
|
||||
// Returns the time at which the system was booted in microseconds since Jan 1, 1970 UTC.
|
||||
|
||||
@@ -28,6 +31,8 @@ bigtime_t rtc_boot_time(void);
|
||||
uint32 rtc_tm_to_secs(const struct tm *t);
|
||||
void rtc_secs_to_tm(uint32 seconds, struct tm *t);
|
||||
|
||||
uint32 get_timezone_offset();
|
||||
|
||||
bigtime_t _user_system_time(void);
|
||||
status_t _user_set_real_time_clock(uint32 time);
|
||||
status_t _user_set_timezone(int32 timezoneOffset);
|
||||
|
||||
Reference in New Issue
Block a user