EAGLE Help
Time Conversions
-
Function
-
Convert a time value to day, month, year etc.
-
Syntax
-
int t2day(int t);
int t2dayofweek(int t);
int t2hour(int t);
int t2minute(int t);
int t2month(int t);
int t2second(int t);
int t2year(int t);
string t2string(int t);
-
Returns
-
t2day returns the day of the month (1..31)
t2dayofweek returns the day of the week (0=sunday..6)
t2hour returns the hour (0..23)
t2minute returns the minute (0..59)
t2month returns the month (0..11)
t2second returns the second (0..59)
t2year returns the year (including century!)
t2string returns a formatted string containing date and time
See also time
Example
int t = time();
printf("It is now %02d:%02d:%02d\n",
t2hour(t), t2minute(t), t2second(t));
Index
|
Copyright © 2005 CadSoft Computer GmbH
|