How To Substract And Add Hours In Laravel Using Carabon

97

//This will add 1 hour from now
$dateTimeNew = Carbon::now()->addHour();

print_r($dateTimeNow->toArray());
print_r($dateTimeNew->toArray());Copy

Comments

Submit
0 Comments