Discuss a project

QQDEV · ASTANA · KAZAKHSTAN

Seconds or minutes: check duration during data exchange

The same number can mean different lengths of time. Check its unit, rounding and meaning before sending it to another system.

Published

3 min10

A hypothetical example. A service sends a work duration of 90. The receiving system displays an hour and a half, although the source meant a minute and a half. The number arrived intact. Its small neighbour, the measurement unit, disappeared.

This can happen between two established systems. An integration exchanges data and needs to transfer an agreed meaning as well as a value. Start by checking one duration field before fixing the whole report.

Establish which time is being transferred

The label “duration” does not explain the measurement. Is it employee effort, the calendar interval between events, planned duration or customer waiting time? Sharing a unit does not make these metrics interchangeable.

Record the starting event, ending event and pause rule. If the source measures actual work, do not compare it directly with the interval between task creation and closure. That interval may include nights and waiting for another department.

For teams in Kazakhstan and Kyrgyzstan, agree label language and business context. Region does not change the relationship between seconds and minutes, but calendar intervals, schedules and time display need separate checks. Do not call a duration working hours without the relevant rule.

Check the unit of the particular field

The official Bitrix24 elapsed-time record description identifies seconds and minutes separately. API field description. Do not choose a similarly named field in the neighbouring system without checking its documentation.

Document source and target units and the conversion in the exchange mapping. Divide seconds by 60 to get minutes. The reverse direction needs separate consideration: rounded minutes cannot recover the original seconds at their previous precision.

Do not treat decimal hours as “hours:minutes”. An hour and a half means 1.5 hours and 90 minutes, rather than one hour and fifty minutes. These figures are a training example, not someone’s work records. Also check decimal separators and the file format.

Round at an agreed stage

Decide whether to preserve precision until reporting or round every record. Adding rounded values can differ from rounding the sum of precise values. That is arithmetic, not something an employee reprimand fixes.

Specify whether to truncate, round to the nearest value or apply another agreed method. Do not invent the rule after seeing an inconvenient total. Distinguish missing values from zero as well: no record does not prove zero work.

Rehearse the chain in both directions

Use hypothetical values below a minute, exactly a minute, a minute with remaining seconds and a longer interval. Compare the source value, transmitted format, stored number and report display. Check every step to locate the lost unit or precision.

If information returns to the source, separately test repeated conversion. A value already converted should not be converted again unexpectedly. Check API access, permissions, plan and regional portal restrictions before development; a documented field does not enable an integration automatically.

You can retain a suitable existing system by correcting one agreed exchange rule. Discuss duration mapping, precision and Bitrix24 integration checks with QQDev without replacing every tool. Review data exchange with QQDev.

← All blog posts