Please consider the results below. It is necessary that the results are consistent.
Here, it seems while all compatible AppSheet functions converts the Duration Epoch seconds to Hours, SPLIT() on the other hand converts them to Days.Hours notation. Of course both are correct in value, but there is inconsistency in format and this has an impact in expressions.
| Expression | Return Value | |
|---|---|---|
| 1 | TODAY() - “02/1/2022” | 1272:00:00 |
| 2 | SPLIT(TODAY() - “02/1/2022”, “:”) | 53.00 , 00 , 00 |
| 3 | EXTRACTNUMBERS( TEXT(TODAY() - “02/1/2022”) ) | 1272 , 0 , 0 |
| 4 | SPLIT(1272:00:00, “:”) | 1272 , 0 , 0 |
| 5 | SPLIT(“1272:00:00”, “:”) | 53.00 , 00 , 00 |
| 6 | SPLIT( TEXT(TODAY() - “02/1/2022”), “:” ) | 1272 , 0 , 0 |
| 7 | TEXT(TODAY() - “02/1/2022”) |
1272:00:00 |
Also, here, it seems that SPLIT() just doesn’t know what to do with a Time value, and treats it as DateTime even if it is only Time.
| Expression | Return Value | |
|---|---|---|
| 8 | TIMENOW() | 1:42:55 |
| 9 | EXTRACTNUMBERS( TEXT(TIMENOW()) ) |
1 , 42 , 55 |
| 10 | SPLIT( TIMENOW(), “:” ) INDEX( SPLIT(TIMENOW(), “:”), 1 ) INDEX( SPLIT(TIMENOW(), “:”), 3 ) |
12/30/1899 1 , 42 , 55 AM 12/30/1899 1 55 AM |
| 11 | SPLIT(1:42:55, “:”) | 1 , 42 , 55 |
| 12 | SPLIT(“1:42:55”, “:”) | 12/30/1899 1 , 42 , 55 AM |
| 13 | SPLIT( TEXT(1:42:55), “:” ) | 1 , 42 , 55 |