-
Notifications
You must be signed in to change notification settings - Fork 119
Description
This issue is for gathering inputs from people with an intuitive understanding of English to help us name things.
Preliminaries: we have Instant.epochSeconds
, which returns the number of seconds that passed since the Unix epoch. On the epoch itself and after some number of nanoseconds that don't amount to a whole second, Instant.epochSeconds
returns 0.
Other libraries, like java.time
, provide the same functionality, but with a slightly different name: Instant.epochSecond
(note it being singular). We assume that the idea behind this is "the nth second since the epoch".
However, colloquially, the nth second/etc. is the second/etc. that goes on before n
whole seconds/etc. have passed. For example, January is the first month of the year, that is, the month that goes on before a whole month has passed.
Questions for the readers:
- If you see
Instant.epochSecond == 1
, what do you think it means—does it mean that it is the first second since the start of the epoch, or that 1 full second has passed since then? - The same, but about
Instant.epochSeconds
. Does this naming seem natural, or slightly odd? - The same about
LocalTime.secondOfDay
andLocalTime.secondsOfDay
: do they mean the same thing to you, or do you feel the first one is an ordinal, but the second one is the count?