PHP date_sunset() FunctionLast Updated : 17 Mar 2025 This date_sunset() function is used to get the timing of sunset of a particular day and location. This function returns the sunset time of different locations. SyntaxParameters
Example 1Output: new delhi, India Date: Fri Sep 07 2018 Sunset time: 19:53 Example 2Output: Wed Aug 01 2018, sunrise time : 20:42 Example 3Output: newyork, America Date: Fri Sep 07 2018 Sunrise time: 07:14 Sunset time: 19:53 Example 4Output: bool(false) Next TopicPhp-date-time-set-function |
We request you to subscribe our newsletter for upcoming updates.

We deliver comprehensive tutorials, interview question-answers, MCQs, study materials on leading programming languages and web technologies like Data Science, MEAN/MERN full stack development, Python, Java, C++, C, HTML, React, Angular, PHP and much more to support your learning and career growth.
G-13, 2nd Floor, Sec-3, Noida, UP, 201301, India