# Time and Date API

> 4 public methods for Time and Date (timeanddate.com), each 1 credit per completed run.

Unofficial. Not affiliated with or endorsed by Time and Date.

- Page: https://fous.com/methods/timeanddate.com

## Methods

### [Convert time between cities](https://fous.com/methods/timeanddate.com/convert-time-between-cities.md)

`timeanddate.com/convert_time_between_cities`, read. Converts a meeting time in one city to local times in other cities, with time zones and 09:00-17:00 working-hours status. Supports dates from 1970 to 2030; ambiguous clock-change times use the first occurrence.

Returns: city, country, local date and time, weekday, time zone abbreviation, UTC offset, working-hours status, page link

### [Count business days](https://fous.com/methods/timeanddate.com/count-business-days.md)

`timeanddate.com/count_business_days`, read. Counts weekdays between two dates, excluding nationwide public holidays or, optionally, public holidays in a state or province, from Time and Date's published holiday calendar.

Returns: calendar days, weekend days, skipped holidays, business days, holiday calendar link

### [Get time in city](https://fous.com/methods/timeanddate.com/get-time-in-city.md)

`timeanddate.com/get_time_in_city`, read. Gets the current local time, time zone, and next daylight saving change for a city listed on Time and Date. Add a state or country to distinguish cities with the same name.

Returns: city, country, local date and time, time zone name and abbreviation, UTC offset, DST status, next DST change, link

### [Get sunrise and sunset](https://fous.com/methods/timeanddate.com/get-sunrise-and-sunset.md)

`timeanddate.com/get_sunrise_and_sunset`, read. Gets daily sunrise, sunset, solar noon, day length and civil twilight for a place from Time and Date, for one or more consecutive days. Times are local with UTC offset; days without sunrise or sunset are marked.

Returns: place, per day: sunrise, sunset, solar noon, day length, civil twilight start/end, note, page URL
