System call for current date, time

Hello,
Is there a system call to get the current date and time? I can’t find anything except real_time_clock
in the BeBook. The header support/DateTime.h contains classes BDate, BTIme, BDateTime,
but I can’t get them to work, and can’t find documentation.
Sincerely,
KantosKan

Searching the source might help you (search the source; near the bottom):
http://www.haiku-os.org/development

or direct link:
http://haiku.it.su.se:8180/source

Also, you should ask these questions to 3rd party developer list because then developers will help you out.
http://www.haiku-os.org/community/ml