Combine seconds and nanos into UTC
Turn Protobuf seconds and nanosecond fields into UTC time, even before 1970.
What you'll make

The formula

| Number | Part | What it does | Result so far |
|---|---|---|---|
| 1 | DATE(1970,1,1) | The start date the days are added to. | 1/1/1970 00:00:00.000 |
| 2 | A8/86400 | Whole seconds turned into days: 86,400 in a day. | 11/4/2026 14:30:15.000 |
| 3 | B8/86400000000000 | Adds the nanoseconds as a tiny part of a day. | 11/4/2026 14:30:15.500 |
Read it left to right. Negative seconds go back before 1970, and the nanoseconds still add time.
=DATE(1970,1,1)+A8/86400+B8/86400000000000How to use it
Yellow bar at the top? Click Enable Editing.
- See it work. The Example tab shows 20 made-up examples with the formula already in.
- Use your own fields. Paste each row's seconds and nanoseconds into the green columns of the Template tab. The UTC dates and times fill in by themselves.
- Move them into your letter. Copy the results. Then use Paste Special and choose Values.
Before you send
Paste the nanoseconds as they are, even before 1970: they always add time. Excel keeps about milliseconds, not every nanosecond.
Microsoft's help: DATE function
OTHER ROUTES YOU MIGHT LIKE

Combine seconds and nanos as days
178215 s, 500000000 ns → 2.062679 days
Get the template →
Join date and time codes, skip zeros
20261104 + 143015 → November 4, 2026 2:30:15 PM
Get the template →
Read signed day-and-time interval text
-00 00:30:00.000000 → -0.020833 days
Get the template →
Show an appointment time as 1:05 PM
13:05:00 → 1:05 PM
Take this route →