package com.honey.honey.util;

import java.time.Instant;

/**
 * Centralized time provider for consistent time handling across the application.
 * All time-related operations should use this provider.
 */
public class TimeProvider {
    
    /**
     * Gets current Unix timestamp in seconds.
     * @return Current epoch seconds
     */
    public static long nowSeconds() {
        return Instant.now().getEpochSecond();
    }
    
    /**
     * Gets current Unix timestamp in milliseconds.
     * @return Current epoch milliseconds
     */
    public static long nowMillis() {
        return Instant.now().toEpochMilli();
    }
}


