From 7102604b8f9ef22ad2e5f37e270f3e4025b4f8e5 Mon Sep 17 00:00:00 2001 From: Akex Date: Thu, 4 Apr 2024 15:09:13 +0500 Subject: [PATCH] first attempt --- app/index.php | 6 ++++++ app/repository/HowDaysToNY.php | 17 +++++++++++++++++ 2 files changed, 23 insertions(+) create mode 100644 app/repository/HowDaysToNY.php diff --git a/app/index.php b/app/index.php index e69de29..4b9c8d2 100644 --- a/app/index.php +++ b/app/index.php @@ -0,0 +1,6 @@ +format('Y')) + 1; + $dateOfNY = new DateTime(); + $dateOfNY->setDate($nextYear, 01, 01); + + $interval = $dateOfNY->diff($date); + + return $interval->format('%a'); + +} -- GitLab