hour
Returns the current hour from a serial Julian date and time.
Excel: HOUR
Controller: CodeCogs
Contents
Interface
C++
Excel
Hour
inthour( | double | time | )[inline] |
Example 1
#include <stdio.h> #include <codecogs/units/time/now.h> #include <codecogs/units/time/hour.h> using namespace Units::Time; int main() { printf("\n The current hour using USA daylight saving is", hour(now(st_USA))); printf("\n The current hour using European daylight saving is", hour(now(st_EU))); return 0; }
Parameters
time is the serial Julian date and time value.
Authors
- Will Bateman (Sep 2004)
Source Code
Source code is available when you agree to a GP Licence or buy a Commercial Licence.
Not a member, then Register with CodeCogs. Already a Member, then Login.