CodeCogs - An iteractive open source Numerical library Welcome... Login
CodeCogs
shopping cart
OSXWindowsLinux
Search CodeCogs
Numerical Components

Valid RSS

UnitsTime

second

Available under GPL (Free) and Commercial licence
get a GPL licence
COST (GBP)
this unit 0.47
sub units 0.00
add a commercial licence to your cart
0
viewed 1730 times and licensed 15 times

Returns the current second from a serial Julian date and time. Excel: SECOND

Controller: CodeCogs  Contact Controller
+View version details
Contents hide toc
buy now     get GPL     add to cart

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. Excel: SECOND
ExcelInteger cc_second (Real time)
This function is available as a Microsoft Excel add-in.

Function Documentation

Second Calculator
  
Add calculator to website or email
 
intseconddoubletime )[inline]
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:
timeis the serial Julian date and time value.
Authors:
Will Bateman (Sep 2004)
Source Code:

To view or download source code you need either a GPL or Commercial Licence.

buy now     get GPL     add to cart

Not a member, then Register with CodeCogs. Already a Member, then Login.


Page Comments

Format Excel Equations

  You must login to leave a messge


Last Modified: 18 Oct 07 @ 17:07     Page Rendered: 2010-03-10 15:48:39

Valid CSS!   Valid XHTML 1.0 Transitional