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

Valid RSS

UnitsDate

today

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

Returns the current date as a serial Julian date. Excel: TODAY

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

Interface

#include <codecogs/units/date/today.h>

using namespace Units::Date;

int today ()
Returns the current date as a serial Julian date. Excel: TODAY
ExcelInteger cc_today ()
This function is available as a Microsoft Excel add-in.

Function Documentation

Add calculator to website or email
 
inttoday )
Returns the current date as a serial Julian date; the number of days since 24 November 4714BC (in the Gregorian calendar).
Example 1:
To output todays date in the Gregorian and Julian calendars
#include <stdio.h>
#include <codecogs/units/date/today.h>
#include <codecogs/units/date/dateymd.h>
using namespace Units::Date;
 
int main()
{
  int d,m,y;
  dateYMD(today(), y,m,d);
  printf("\n The Gregorian date is: %d/%d/%d", d,m,y);
  dateYMD(today(), y,m,d, cal_Julian);
  printf("\n The Julian date is: %d/%d/%d", d,m,y);
  return 0;
}
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-13 06:02:44

Valid CSS!   Valid XHTML 1.0 Transitional