Axel Dörfler
6a0f39da22
Applied patch by Julun: time computations based on an algorithm by Fliegel,
...
and van Flandern (1968), instead of those inefficient loops we had before.
Thanks!
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@22557 a95241bf-73f2-0310-859d-f6bbb57e9c96
2007-10-14 17:27:44 +00:00
Axel Dörfler
f46bdd1c9a
Added a _kern_get_timezone() syscall that can be used without needing to
...
re-evaluate the timezone file over and over.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@16785 a95241bf-73f2-0310-859d-f6bbb57e9c96
2006-03-14 14:29:56 +00:00
Ingo Weinhold
d9a5e6050f
Pulled the conversion between seconds since the epoche and the split up
...
(year, month,...) representation out of the x86 specific code and put
respective support functions into real_time_clock.c. We'll need those
for the PPC specific part too.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@15827 a95241bf-73f2-0310-859d-f6bbb57e9c96
2006-01-03 17:26:37 +00:00
Jérôme Duval
5622a2e2c5
added get_rtc_info, needed in the kernel for services which use local timestamps such as the dos filesystem
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@10463 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-12-15 09:23:50 +00:00
Jérôme Duval
9b50999cc7
reverted to rtc_boot_time
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@10281 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-11-28 23:23:48 +00:00
Axel Dörfler
0d96fb1167
Moved _user_system_time() to real_time_clock.c.
...
Renamed _user_set_tzspecs() to _user_set_timezone().
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@10252 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-11-26 15:00:27 +00:00
Jérôme Duval
0018ac6a37
added _user_get_tzfilename
...
renamed rtc_boot_time to rtc_system_time_offset
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@10190 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-11-23 00:10:18 +00:00
Jérôme Duval
4bbf2e4987
added _user_set_tzfilename
...
removed set_tzspecs, which was useless; now done in user_set_tzspecs
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@10176 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-11-22 17:05:17 +00:00
Jérôme Duval
35bec416bb
added timezone_offset and dst_observed fields to real_time_data
...
added prototypes for set_tzspecs, used for setting these fields
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@10132 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-11-22 00:28:12 +00:00
Axel Dörfler
4ce0cb439a
The set_read_time_clock() syscall now returns a status_t to be able to
...
indicate failure.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@9803 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-11-05 16:06:28 +00:00
Axel Dörfler
9699c52992
Added the syscall for set_real_time_clock().
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@5187 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-10-28 13:30:10 +00:00
Axel Dörfler
f6cb2b865e
rtc_set_system_time() is no longer needed.
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@5146 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-10-24 15:08:02 +00:00
Axel Dörfler
a34e8cc39f
Applied our style guide, made the headers C++ safe.
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@5139 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-10-24 11:58:21 +00:00
Axel Dörfler
2218f79ede
Added real-time clock support written by Jeff Ward (for the kernel).
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@5137 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-10-24 10:21:10 +00:00