Main.java Source code

Java tutorial

Introduction

Here is the source code for Main.java

Source

//package com.java2s;

public class Main {

    public static boolean isToday(long value) {
        long today = System.currentTimeMillis();
        long offset = 8 * 60 * 60 * 1000;
        return (today + offset) / 86400000 == (value + offset) / 86400000;
    }
}