TIME Function (OpenOffice Calc)
Learn the TIME function in Apache OpenOffice Calc: Determines a time value from the details for hour, minute and second.
Verification status: See the evidence and test scope described in this guide. How formula examples are checked
Availability and version history
- Introduced: Documented by Apache OpenOffice 4.1.16; original introduction not established.
- Availability: Supported in Apache OpenOffice 4.1.16, verified against its function registry. This identifies a supported release, not a final working version.
- Scope: Desktop Calc, using the English function name. Availability in other spreadsheet applications is separate.
- Checked: 2026-10-14 — function reference; versioned support. Documentation/source check; not a new native test. Existing example-specific test claims below retain their stated scope.
TIME combines hours, minutes and seconds into a time-of-day fraction of one day. In the inspected OpenOffice implementation, it adds the components as seconds and takes a remainder over 86,400. It does not preserve a count of complete elapsed days, so it is not a general duration constructor.
Syntax and arguments
=TIME(hour; minute; second)
All three numeric arguments are required. The pinned callback does not individually truncate them: it uses the expression (hour3600+minute60+second) before taking fmod with 86400 and dividing by 86400. Fractional components and ordinary overflow into adjacent components therefore affect the total. A negative remainder follows the illegal-argument path. Examples use English function names and semicolon argument separators.
Reproducible examples
| Formula | Expected result |
|---|---|
=HOUR(TIME(14;30;0)) |
14 |
=TIME(14;30;0) |
14:30:00 |
=TIME(25;0;0) |
01:00:00 |
=TIME(0;90;0) |
01:30:00 |
=TIME(1.5;0;0) |
01:30:00 |
=TIME(-1;90;0) |
00:30:00 |
=TIME(24;0;0) |
00:00:00 |
The first formula preserves the original example and result. Its historical comparable LibreOffice 25.2 check was not an OpenOffice test. New calendar and time results are independently checked reference expectations, not captured native cells. Calendar dates use ISO notation and clock results use HH:MM:SS to avoid ambiguous display conventions.
Practical worksheet: build time values from clock components
Use Hour, Minute and Second in A1:C1. Enter rows (8;15;0), (12;0;30) and (17;45;15) in A2:C4. In D2 enter =TIME(A2;B2;C2) and fill down. Expected displayed times are 08:15:00, 12:00:30 and 17:45:15. The underlying values are fractions of a day, not the decimal numbers 8.15, 12.0030 and 17.4515.
In E2 enter =HOUR(D2), F2 =MINUTE(D2) and G2 =SECOND(D2) and fill down. For these whole-second inputs the components reproduce the original columns. Retaining the component columns helps identify entry errors before time normalization hides them.
Advanced applications
Carry ordinary overflowing components. TIME(0;90;0) gives 01:30:00 because 90 minutes is 5,400 seconds. TIME(1.5;0;0) gives the same result in this source model, so fractional hours are not automatically discarded. These are reference calculations, not fresh native coercion tests.
Separate a clock from a duration. TIME(25;0;0) wraps to 01:00:00. To store a duration of 25 hours, use =25/24 instead and choose an elapsed-time format such as [HH]:MM. Its numeric value exceeds one day; the TIME result does not. The proposed display format was not tested in a new GUI session.
Attach a date. =DATE(2026;10;15)+TIME(14;30;0) represents October 15, 2026 at 14:30. No timezone is attached by either function. If a duration crosses midnight, use date-time values rather than inferring the date from a wrapped time alone.
Errors, edge cases and troubleshooting
Negative components are not rejected independently. TIME(-1;90;0) has a positive total of 1,800 seconds and gives 00:30:00, while TIME(-1;0;0) has a negative remainder and follows the illegal-argument path. The guide avoids generalizing this into a promise about every extreme or negative exact-multiple case.
A value such as 14.30 supplied as the hour is a decimal hour quantity, not a shorthand for 14:30. Likewise, changing a cell’s format does not convert numeric-looking text or fix incorrectly entered components. Use separate numeric columns and explicit units.
TIME retains fractional seconds mathematically, but HOUR/MINUTE/SECOND in this pinned source round the fractional day to the nearest second before extracting components. That distinction matters near minute and day boundaries. No native precision, localized text parsing, import/export or timezone behavior is certified. A displayed time-of-day is not an elapsed-hours total.
Date tip: Dates are internally numeric values, while date formatting controls their appearance. Compare actual dates, not text that merely resembles dates.
Related functions
Documentation and verification
See the Apache OpenOffice TIME reference, 4.1.16 function resources and versioned date/time interpreter. Official source snapshots were retrieved October 13, 2026 and re-read for this guide. The calculations use an independent calendar and exact rational day-fraction model; no fresh native/headless application or GUI execution is claimed. First introduction and final functioning version remain unknown, separate from documented 4.1.16 support.