Skip to content

Plurals vs singulars in ordinals #210

@dkhalanskyjb

Description

@dkhalanskyjb

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 and LocalTime.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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions