Hackfut Security File Manager
Current Path:
/home/u126195517/domains/rdnirjaldhulai.com/public_html/applications
home
/
u126195517
/
domains
/
rdnirjaldhulai.com
/
public_html
/
applications
/
📁
..
📁
TCPDF
📁
aarambhappapi
📁
adiappapi
📁
admin_dp
📁
app_icons
📁
bookingapi
📁
client_dp
📄
mbno_script.php
(788 B)
📁
prarambhappapi
📁
rdscontrolers
📁
sanchalakappapi
📄
testing5.php
(11.33 KB)
📄
timechk.php
(748 B)
📁
user_logos
📁
user_photos
Editing: timechk.php
<?php // PHP Check if time is between two times regardless of date function TimeIsBetweenTwoTimes($from, $till, $input) { $f = DateTime::createFromFormat('H:i:s', $from); $t = DateTime::createFromFormat('H:i:s', $till); $i = DateTime::createFromFormat('H:i:s', $input); if ($f > $t) $t->modify('+1 day'); return ($f <= $i && $i <= $t) || ($f <= $i->modify('+1 day') && $i <= $t); } date_default_timezone_set("Asia/Kolkata"); echo "The time is " . date("H:i:s"); $current_time = date("H:i:s"); //$current_time = "19:30:00"; $from_time = "09:00:00"; $to_time = "21:00:00"; if (TimeIsBetweenTwoTimes($current_time, $from_time, $to_time)) { echo 'Have a good night!'; } else { echo 'Have a nice day!'; } ?>
Upload File
Create Folder