Lines 58-82
Link Here
|
58 |
|
58 |
|
59 |
/** |
59 |
/** |
60 |
* Perform WEEKDAY(date, returnOption) function. |
60 |
* Perform WEEKDAY(date, returnOption) function. |
61 |
* Note: Parameter texts are from German EXCEL-2010 help. |
|
|
62 |
* Parameters in args[]: |
61 |
* Parameters in args[]: |
63 |
* args[0] serialDate |
62 |
* - args[0]: serialDate, the EXCEL-date value (number of days since 1.1.1900 starting at 1) |
64 |
* EXCEL-date value |
63 |
* - args[1]: returnOption (optional parameter, default is 1) |
65 |
* Standardmaessig ist der 1. Januar 1900 die fortlaufende Zahl 1 und |
64 |
* Defines the result value (a number): |
66 |
* der 1. Januar 2008 die fortlaufende Zahl 39.448, da dieser Tag nach 39.448 Tagen |
65 |
1 or left out: 1 (Sunday) to 7 (Saturday). |
67 |
* auf den 01.01.1900 folgt. |
66 |
2: 1 (Monday) bis 7 (Sunday). |
68 |
* @return Option (optional) |
67 |
3: 0 (Monday) to 6 (Sunday). |
69 |
* Bestimmt den Rueckgabewert: |
68 |
11: 1 (Monday) to 7 (Sunday) |
70 |
1 oder nicht angegeben Zahl 1 (Sonntag) bis 7 (Samstag). Verhaelt sich wie fruehere Microsoft Excel-Versionen. |
69 |
12: 1 (Tuesday) to 7 (Monday) |
71 |
2 Zahl 1 (Montag) bis 7 (Sonntag). |
70 |
13: 1 (Wednesday) to 7 (Tuesday) |
72 |
3 Zahl 0 (Montag) bis 6 (Sonntag). |
71 |
14: 1 (Thursday) to 7 (Wednesday) |
73 |
11 Die Zahlen 1 (Montag) bis 7 (Sonntag) |
72 |
15: 1 (Friday) to 7 (Thursday) |
74 |
12 Die Zahlen 1 (Dienstag) bis 7 (Montag) |
73 |
16: 1 (Saturday) to 7 (Friday) |
75 |
13 Die Zahlen 1 (Mittwoch) bis 7 (Dienstag) |
74 |
17: 1 (Sunday) to 7 (Saturday) |
76 |
14 Die Zahlen 1 (Donnerstag) bis 7 (Mittwoch) |
|
|
77 |
15 Die Zahlen 1 (Freitag) bis 7 (Donnerstag) |
78 |
16 Die Zahlen 1 (Samstag) bis 7 (Freitag) |
79 |
17 Die Zahlen 1 (Sonntag) bis 7 (Samstag) |
80 |
*/ |
75 |
*/ |
81 |
public ValueEval evaluate(ValueEval[] args, int srcRowIndex, int srcColumnIndex) { |
76 |
public ValueEval evaluate(ValueEval[] args, int srcRowIndex, int srcColumnIndex) { |
82 |
try { |
77 |
try { |