Level Eevee up at night with high friendship, and it becomes an Umbreon. Daytime level-ups with high friendship give you Espeon instead, so the time of day is the deciding factor.
Friendship is raised by levelling, using items on the Pokémon, and walking with it in your party; it falls if the Pokémon faints or is given bitter herbs. In Sun and Moon and later titles you also need to confirm the in-game clock is set to night, since the console clock does not govern it. Once both conditions are met, the next level-up triggers the evolution.