Contact

Calligra Sheets SECOND Function: Extract the Second from a Time

Date & Time Beginner Calligra Sheets

Use SECOND and its SECONDS alias in Calligra Sheets. Compare fractional-second construction, rounding to 60 and verified component examples.

Verification status: 31 selected expressions for SECOND and 22 for its SECONDS synonym were executed through the Calligra Sheets 25.04.2 engine library. One Boolean-clock observation is excluded from fixed expectations. Ordinary worksheet scenarios were checked through direct expressions, without cell/import/GUI claims; 26.08.2 is source-only. How formula examples are checked

Rounding warning: =SECOND(59.5/86400) returned 60 in the tested 25.04.2 engine. The result is a rounded component, and cannot always be assumed to lie between 0 and 59.

Quick answer: =SECOND(TIME(13;45;30)) returns 30 in the tested engine.

Availability and version history

  • Introduced: First release not established; the name is present in Calligra 2.4.0 source.
  • Supported in: Calligra Sheets 26.08.2, also registered as SECONDS, with the limitations described here; no retirement established.
  • Scope: Desktop Sheets with the Date & Time module. Formulas use English names and semicolon separators.
  • Checked: October 14, 2026: selected 25.04.2 engine-library formulas and independent calendar/time reconstructions; 26.08.2 source only. The test locale was C, with Monday as its week start. No GUI-cell or import execution is claimed.

What SECOND returns

SECOND extracts the rounded second component. The plural spelling SECONDS uses the same callback and accepted argument count; both names are covered here. The time helper supplies an integer second component plus milliseconds, and the callback rounds those milliseconds to a whole second. It is not a total-elapsed-seconds function. Whole and fractional days can have a zero second component. Official function reference.

Syntax and arguments

=SECOND([time])

time is optional in the registration. Numbers represent days. A recognized time string is converted using the locale. With no argument the callback reads the current clock; that form was source-inspected only. Use a numeric fraction of a day when testing subsecond input. Brackets mark optional arguments and are not typed. Registration and implementation.

Reproducible engine examples

Numeric results are rounded here to twelve decimal places. The reconstruction column applies independent calendar arithmetic or the explicitly inspected time/conversion rule. Date serials use the tested default reference date; they do not show native GUI date formatting.

Formula Engine result Independently reconstructed calendar or time rule
=SECOND(TIME(13;45;30)) 30 30
=SECOND(TIME(0;0;0)) 0 0
=SECOND(TIME(23;59;59)) 59 59
=SECOND(.5) 0 0
=SECOND(1.5) 0 0
=SECOND(2.25) 0 0
=SECOND(TIME(27;15;0)) 0 0
=SECOND(TIME(0;0;12.5)) 12 12

Practical worksheet

Put =TIME(13;45;30) in A2 and use =SECOND(A2) to get 30. For elapsed durations stored in days, multiplying by 86,400 preserves the duration rather than extracting its component.

Be careful when constructing a fractional-second test: =SECOND(TIME(0;0;12.5)) returned 12, because this TIME callback stores its seconds argument in an integer before creating the time. In contrast, the separately executed =SECOND(12.5/86400) returned 13. The difference occurs before SECOND finishes its rounding.

Six-row worksheet

Enter the time formula in column A and the component formula in column B. Direct nested TIME counterparts for the six rows below were executed in the 25.04.2 engine; the referenced-cell entry, copy/fill and display formatting were not tested.

Row Enter in A (formula) Time represented (reading aid) In B enter Expected B (not native-observed)
2 =TIME(9;8;7) 09:08:07 =SECOND(A2) 7
3 =TIME(14;35;42) 14:35:42 =SECOND(A3) 42
4 =TIME(0;0;0) 00:00:00 =SECOND(A4) 0
5 =TIME(23;59;59) 23:59:59 =SECOND(A5) 59
6 =TIME(7;15;30) 07:15:30 =SECOND(A6) 30
7 =TIME(16;2;5) 16:02:05 =SECOND(A7) 5

For A3 in the six-row worksheet, =HOUR(A3)*3600+MINUTE(A3)*60+SECOND(A3) gives 52542 seconds since midnight. Do not measure elapsed time by subtracting second components: 14:35:58 to 14:36:02 spans four seconds, but SECOND(end)-SECOND(start) gives −56. Direct TIME expressions for both calculations were executed; these remain clock-component recipes rather than timezone-aware timestamp arithmetic.

Advanced interpretation and checks

The following serial-fraction expression returned 60. If the intended rule for a nonnegative elapsed-seconds value is truncation followed by a 60-second remainder, a separate formula expresses that rule: =MOD(INT(59.5);60) was executed and returned 59. It is a different rounding convention, not an interchangeable SECOND call.

At 59.9999 seconds, the helper’s millisecond rounding first carries into the next minute, so =SECOND(59.9999/86400) returned 0. Do not use the integer component as a substitute for retaining subsecond information.

=SECOND(59.5/86400)

The executed result was 60.

The handbook examples were also checked directly: =SECOND("22:10:12") returned 12, and =SECOND(0.1234) returned 42, in the tested C-locale engine.

Boundaries and troubleshooting

“13:45:30” produced 30 in the tested C locale; “abc” returned actual #VALUE!. A division-by-zero input was converted to an empty numeric value and returned zero. Two supplied arguments were rejected.

A Boolean input invokes the current-clock conversion, not numeric-day conversion. Its observed second value is retained as a volatile observation and is not printed as a fixed expectation. Neither the zero-argument clock form nor other locales were executed.

Formula Engine result
=SECOND(TIME(0;0;12.4)) 12
=SECOND(TIME(0;0;59.5)) 59
=SECOND(59.5/86400) 60
=SECOND(59.9999/86400) 0
=SECOND(-.5) 0
=SECOND(-1.25) 0
=SECOND("13:45:30") 30
=SECOND("abc") #VALUE!
=SECOND(1/0) 0
=SECOND(1;2) #VALUE!
=SECOND(12.5/86400) 13
=MOD(INT(59.5);60) 59

Alias identity and coverage

SECONDS is a registered synonym of SECOND, not a different elapsed-duration calculation. The two registrations use the same callback and allow zero or one argument. All retained deterministic counterpart expressions produced exactly the same typed result under both spellings. Use either spelling for the same component calculation. This identity finding does not establish import/export equivalence in another spreadsheet product.

Official evidence and precision scope

The selected callbacks, date/time module and inspected conversion/time helpers are byte-identical between the retained 25.04.2 and 26.08.2 sources. This establishes source continuity for the described paths, not execution of the later release.

TIME, MOD.