All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.uid2.shared.InstantClock Maven / Gradle / Ivy

package com.uid2.shared;

import java.time.Instant;

public class InstantClock implements IClock {
    @Override
    public Long getEpochSecond() {
        return Instant.now().getEpochSecond();
    }

    @Override
    public Long getEpochMillis() {
        return Instant.now().toEpochMilli();
    }

    @Override
    public Instant now() {
        return Instant.now();
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy