package io.delphiplatform.api.util.service;

import org.springframework.stereotype.Service;

import java.time.LocalDate;
import java.time.LocalDateTime;

@Service
public class CurrentDateServiceImpl implements CurrentDateService {

    @Override
    public LocalDate getCurrentDate() {
        return getCurrentDateTime().toLocalDate();
    }

    @Override
    public LocalDateTime getCurrentDateTime() {
        return LocalDateTime.now();
    }
}