viewed 1542 times and licensed 18 times
Returns the current minute from a serial Julian date and time.
Excel: MINUTE
View version details
Contents  |
|
Interface
#include <codecogs/units/time/minute.h>
using namespace Units::Time;
| int | minute (double time)[inline] Returns the current minute from a serial Julian date and time.
Excel: MINUTE |
 | Integer | cc_minute (Real time) This function is available as a Microsoft Excel add-in. |
Function Documentation
Returns the minute within a serial Julian date and time values. Care must be taken in handling rounding errors appropriately, because time is expressed as a fraction of a 24hr day. Therefore 1min is ~0.000694444 days. Given this fraction, this function first calculates the number of seconds that have lapsed into the current day, rounding to the nearest second. The seconds are then converting in a whole number of minutes that have elapsed in the current hour.
Example 1:
#include <stdio.h>
#include <codecogs/units/time/now.h>
#include <codecogs/units/time/minute.h>
using namespace Units::Time;
int main()
{
printf("\n The current minute using USA daylight saving is", minute(now(st_USA)));
printf("\n The current minute using European daylight saving is", minute(now(st_EU)));
return 0;
}
Parameters:
| time | is the serial Julian date and time value. |
Authors:
- Will Bateman (Sep 2004)
Page Comments
You must login to leave a messge
Last Modified: 18 Oct 07 @ 17:07 Page Rendered: 2010-03-15 00:28:58