second
Returns the current second from a serial Julian date and time.
Excel: SECOND
Controller: CodeCogs
Interface
#include <codecogs/units/time/second.h>
using namespace Units::Time;
int | second (double time)[inline]
Returns the current second from a serial Julian date and time.
<span align="right" style="background-color:99FF99"><strong>Excel: SECOND</strong></span> |
These functions are available for Microsoft Excel (
Login to download):
Integer | cc_second (Real time) |
Use the following HTML code to embed the calculators within other websites:
Second
Returns the hour 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 1sec is ~0.000015 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 that make up a whole number of minutes are then subtracted with the remainder being the number of seconds in the current minute.
Example 1
#include <stdio.h>
#include <codecogs/units/time/now.h>
#include <codecogs/units/time/second.h>
using namespace Units::Time;
int main()
{
printf("\n The current second using USA daylight saving is", second(now(st_USA)));
printf("\n The current second using European daylight saving is", second(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.