Commit 0a407081 authored by Morten Welinder's avatar Morten Welinder

Even more date stuff.

parent 718dbbf8
......@@ -14,6 +14,9 @@ Morten:
* Reworked the insert/delete column/row again.
* Reworked the Goal Seek function to produce more accurate
result faster, and fail less often.
* Improved the recalculation engine.
* Shined up date calculations.
* WEEKDAY(), DAYS360, TIMEVALUE().
Miguel
* Worked on other things
......
1999-06-02 Morten Welinder <terra@diku.dk>
* src/fn-date.c (gnumeric_days360): New (unimplemented) function.
* src/fn-date.c (gnumeric_year_month_day): Delete.
(gnumeric_day, gnumeric_month, gnumeric_year): New functions.
(gnumeric_hour_min_sec): Delete.
......
1999-06-02 Morten Welinder <terra@diku.dk>
* src/fn-date.c (gnumeric_days360): New (unimplemented) function.
* src/fn-date.c (gnumeric_year_month_day): Delete.
(gnumeric_day, gnumeric_month, gnumeric_year): New functions.
(gnumeric_hour_min_sec): Delete.
......
1999-06-02 Morten Welinder <terra@diku.dk>
* src/fn-date.c (gnumeric_days360): New (unimplemented) function.
* src/fn-date.c (gnumeric_year_month_day): Delete.
(gnumeric_day, gnumeric_month, gnumeric_year): New functions.
(gnumeric_hour_min_sec): Delete.
......
1999-06-02 Morten Welinder <terra@diku.dk>
* src/fn-date.c (gnumeric_days360): New (unimplemented) function.
* src/fn-date.c (gnumeric_year_month_day): Delete.
(gnumeric_day, gnumeric_month, gnumeric_year): New functions.
(gnumeric_hour_min_sec): Delete.
......
......@@ -437,6 +437,29 @@ gnumeric_weekday (FunctionDefinition *fd, Value *argv [], char **error_string)
}
static char *help_days360 = {
N_("@FUNCTION=DAY\n"
"@SYNTAX=DAYS360 (serial1,seriel2)\n"
"@DESCRIPTION="
"FIXME"
"\n"
"Note that Gnumeric will perform regular string to serial "
"number conversion for you, so you can enter a date as a "
"string.\n"
""
"@SEEALSO=MONTH, TIME, NOW, YEAR")
};
static Value *
gnumeric_days360 (FunctionDefinition *fd, Value *argv [], char **error_string)
{
*error_string = _("Unimplemented function");
return NULL;
}
FunctionDefinition date_functions [] = {
{ "date", "fff", "year,month,day", &help_date,
NULL, gnumeric_date },
......@@ -444,6 +467,8 @@ FunctionDefinition date_functions [] = {
NULL, gnumeric_datevalue },
{ "day", "f", "serial_number", &help_day,
NULL, gnumeric_day },
{ "days360", "ff", "serial1,serial2", &help_days360,
NULL, gnumeric_days360 },
{ "edate", "ff", "serial_number,months", &help_edate,
NULL, gnumeric_edate },
{ "hour", "f", "serial_number", &help_hour,
......
......@@ -437,6 +437,29 @@ gnumeric_weekday (FunctionDefinition *fd, Value *argv [], char **error_string)
}
static char *help_days360 = {
N_("@FUNCTION=DAY\n"
"@SYNTAX=DAYS360 (serial1,seriel2)\n"
"@DESCRIPTION="
"FIXME"
"\n"
"Note that Gnumeric will perform regular string to serial "
"number conversion for you, so you can enter a date as a "
"string.\n"
""
"@SEEALSO=MONTH, TIME, NOW, YEAR")
};
static Value *
gnumeric_days360 (FunctionDefinition *fd, Value *argv [], char **error_string)
{
*error_string = _("Unimplemented function");
return NULL;
}
FunctionDefinition date_functions [] = {
{ "date", "fff", "year,month,day", &help_date,
NULL, gnumeric_date },
......@@ -444,6 +467,8 @@ FunctionDefinition date_functions [] = {
NULL, gnumeric_datevalue },
{ "day", "f", "serial_number", &help_day,
NULL, gnumeric_day },
{ "days360", "ff", "serial1,serial2", &help_days360,
NULL, gnumeric_days360 },
{ "edate", "ff", "serial_number,months", &help_edate,
NULL, gnumeric_edate },
{ "hour", "f", "serial_number", &help_hour,
......
......@@ -437,6 +437,29 @@ gnumeric_weekday (FunctionDefinition *fd, Value *argv [], char **error_string)
}
static char *help_days360 = {
N_("@FUNCTION=DAY\n"
"@SYNTAX=DAYS360 (serial1,seriel2)\n"
"@DESCRIPTION="
"FIXME"
"\n"
"Note that Gnumeric will perform regular string to serial "
"number conversion for you, so you can enter a date as a "
"string.\n"
""
"@SEEALSO=MONTH, TIME, NOW, YEAR")
};
static Value *
gnumeric_days360 (FunctionDefinition *fd, Value *argv [], char **error_string)
{
*error_string = _("Unimplemented function");
return NULL;
}
FunctionDefinition date_functions [] = {
{ "date", "fff", "year,month,day", &help_date,
NULL, gnumeric_date },
......@@ -444,6 +467,8 @@ FunctionDefinition date_functions [] = {
NULL, gnumeric_datevalue },
{ "day", "f", "serial_number", &help_day,
NULL, gnumeric_day },
{ "days360", "ff", "serial1,serial2", &help_days360,
NULL, gnumeric_days360 },
{ "edate", "ff", "serial_number,months", &help_edate,
NULL, gnumeric_edate },
{ "hour", "f", "serial_number", &help_hour,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment