today
Returns the current date as a serial Julian date.
Excel: TODAY
Controller: CodeCogs
Contents
Interface
C++
Excel
Today
inttoday( | ) |
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
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.