Exemple #1
0
    static public bool IsTimeOK(long iFrom, long iTo, int iTimeZone)
    {
        System.DateTime _From = CoreTools.PHPTimeToCSharpTime(iFrom, iTimeZone);
        System.DateTime _To   = CoreTools.PHPTimeToCSharpTime(iTo, iTimeZone);

        long _Now = GetNowTimeTick();

        if (_Now >= _From.Ticks && _Now <= _To.Ticks)
        {
            return(true);
        }

        return(false);
    }