Two small calculators cause a surprising number of bugs: the one that turns a Unix timestamp into a date, and the one that turns an IP address and a prefix into a host range. Both look trivial. Both have edge cases that tutorials skip. I run browser versions of each, so I ran the edge cases through the live pages with Playwright and Chrome 156, with the browser's time zone set to America/Chicago, and wrote down what happened.

Seconds versus milliseconds

A Unix timestamp counts seconds since 1970-01-01 00:00:00 UTC. JavaScript, and many JSON APIs, use milliseconds instead. The Unix Timestamp page accepts either in one box. Auto reads 12 or more digits as milliseconds and 11 or fewer as seconds (for a whole number, that is the same cutoff as 100 billion). There is also a unit menu, so you can force Seconds or Milliseconds. The page prints a "Read as" line so you can see which one it used.

On my run:

Input Read as UTC result
1762380000 seconds 2025-11-05 22:00:00
1762380000000 milliseconds 2025-11-05 22:00:00
99999999999 seconds 5138-11-16 09:46:39
100000000000 milliseconds 1973-03-03 09:46:40
86400000 seconds 1972-09-27 00:00:00

The first two are the same instant, which is the point of the "ten digits is seconds, thirteen is milliseconds" rule of thumb. The rest show where the rule stops working.

The 12-digit cutoff is the interesting part. A millisecond value with 11 digits or fewer is read as seconds, so a millisecond timestamp for any moment before 1973-03-03 comes out wrong in Auto. 86400000 is one day after the epoch in milliseconds, but Auto read it as 86.4 million seconds and showed September 1972. The same happens with 63072000000, which is 1972-01-01 in milliseconds and 11 digits; Auto showed year 3968. Set the unit to Milliseconds for those values and they convert correctly. You will not hit this with timestamps from the last fifty years. You will hit it with test fixtures like 0, 1000 or 86400000, and with historical dates. A 12-digit value such as 946684800000 is now read as milliseconds in Auto and shows 2000-01-01 00:00:00 UTC.

There is no way to make the Auto guess right for every input, because the same number is a valid timestamp in both units. The practical rule: look at the "Read as" line before you trust the date, and when the value has 11 digits or fewer and you meant milliseconds, switch the unit yourself.

Other results from the run:

  • 2147483647 gave 2038-01-19 03:14:07 UTC, the last second a signed 32-bit counter can hold. 2147483648 converted fine in the browser, because JavaScript numbers are not 32-bit. A 32-bit system would wrap.
  • -1 and 0 work: 1969-12-31 23:59:59 and 1970-01-01 00:00:00 UTC.
  • 12.5 was read as seconds and showed 12500 ms, so fractions survive in the millisecond row.
  • abc and 1e3 were rejected with "Enter a number, with no letters."

The page says Unix time ignores leap seconds, which is how the number is defined.

Date to timestamp uses your computer's zone

The reverse conversion takes a date and time from a picker, and the picker has no time zone menu. It uses the device's zone and then shows the result in UTC. With my browser set to America/Chicago, 09:00 on 2026-12-06 gave 1796569200, which is 15:00 UTC. If you meant 09:00 in London, the number will be wrong unless the device is set to London. For converting between cities there is the Time Zone Converter.

Daylight saving time adds two more cases. I tried both:

  • A time that does not exist. On 2026-03-08, Chicago jumps from 02:00 to 03:00. I entered 02:30. The page returned 1772958600, which is 08:30 UTC, equal to 03:30 in Chicago. The browser moved the nonexistent time forward, and the page added that the local time does not exist because of a daylight-saving gap, so the clock was moved forward. Entering 03:30 produced the same UTC time, without that sentence.
  • A time that happens twice. On 2026-11-01, Chicago repeats the 01:00 hour. I entered 01:30 and got 1793514600, 06:30 UTC. That is the first of the two 01:30s. If you needed the second one, this page cannot give it to you.

Neither is a bug in the tool. Both are what Date does with a local time that is ambiguous. They are worth knowing about if you are scheduling something around a clock change.

The subnet calculator

The Subnet Calculator takes an IPv4 address and a prefix from 0 to 32, and lists the mask, network, broadcast, host range, address count and usable hosts. It does IPv4 only. Here is what it printed for several inputs:

Input Network Host range Addresses
192.168.1.10 /24 192.168.1.0 .1 – .254 256 (254 usable)
192.168.1.130 /25 192.168.1.128 .129 – .254 128 (126 usable)
10.0.0.5 /30 10.0.0.4 10.0.0.5 – 10.0.0.6 4 (2 usable)
10.0.0.4 /31 10.0.0.4 10.0.0.4 – 10.0.0.5 2 (2 usable)
10.0.0.4 /32 10.0.0.4 10.0.0.4 1 (1 usable)
10.1.2.3 /0 0.0.0.0 0.0.0.1 – 255.255.255.254 4,294,967,296

Three details are worth a closer look.

You can type a host, not just a network. 192.168.1.130/25 returns the network 192.168.1.128/25, the block that contains that address. That is useful, and it is easy to mistake for an error when you expected .130 to be the start.

/31 and /32 break the usual "minus 2" rule, and the page now follows RFC 3021. The ordinary formula is 2 to the power of (32 − prefix), minus 2 for the network and broadcast addresses. For a /31 that would give zero. The page instead prints Addresses: 2 (2 usable) for 10.0.0.4/31, and Addresses: 1 (1 usable) for a /32, and the host range includes both ends. That matches RFC 3021, which allows a /31 on point-to-point links, with both addresses usable and no broadcast. Ordinary prefixes such as /24 still subtract the two ends: 192.168.1.10/24 is 256 (254 usable).

A failed input no longer leaves the last result on screen. After a successful /32, 192.168.1.256 showed "Invalid IP or CIDR" and the detail lines below were empty. The same happened with ::1 and a /64, and with a /33. IPv6 is not accepted at all.

One more behavior: 192.168.001.010 was accepted and treated as 192.168.1.10. Some other tools read a leading zero as octal. If you paste addresses from a spreadsheet, strip the zeros yourself so that every tool agrees.

What the two pages have in common

Both are small, run entirely in the browser, and do one calculation. The pages say what they do not do: no leap seconds, no IPv6, no splitting a block into subnets, no private-versus-public labels. That is a better contract than a tool that silently does something plausible. The edge cases above are where that honesty is tested, and in both tools the edges are where I would want a second check.

The short version

  • Ten digits and thirteen digits are the same instant in seconds and milliseconds, but Auto fails for milliseconds before March 1973 (11 digits or fewer). Read the "Read as" line, and switch the unit to Milliseconds when you need to.
  • The date picker uses the device's time zone. A nonexistent daylight-saving time moves forward, and the page tells you so; a repeated one gives the first occurrence.
  • A host with a prefix gives you the network that contains it.
  • A /31 shows 2 usable hosts, and a /32 shows 1, which matches RFC 3021. Ordinary prefixes still subtract 2.
  • When the subnet page shows an error, the detail lines underneath are cleared.

Disclosure: I run PC Tools Online, the site linked above. Happy to answer implementation questions in the comments.

AI assistance: I used an AI assistant to help run the edge cases and draft this article. Every result above came from running the live pages in headless Chrome 156 with the time zone set to America/Chicago, including a later re-check after the Auto unit rule, the daylight-saving notice, and the /31 usable counts were updated.