Skip to content
World Time Labv2026.7.5
  • Explore time around EarthWorld Clock

    See the live globe, local clocks, and places around the world.

    • Live World ClockExplore day, night, time zones, and pinned places.
    • Time by CitySearch current local time in cities worldwide.
    • Time by CountrySee every civil time zone used by a country.
    • Distance Between CitiesMeasure great-circle distance on a real globe.
    • Day & Night WidgetAdd the live day and night map to another site.
    About & dataAbout World Time LabMethodology & Data SourcesReport an ErrorContact
  • Convert and coordinateTime Zones

    Translate city times, UTC offsets, and abbreviations without guesswork.

    • Time Zone ConverterCompare cities, PST, WAT, UTC offsets, and more in one view.
    • Meeting Time FinderFind working-hour overlap across as many as six locations.
    • Time Zone Conversion ChartsBrowse quick reference tables for common zone pairs.
    About & dataAbout World Time LabMethodology & Data SourcesReport an ErrorContact
  • Follow the skySun & Moon

    Track sunlight, moon phases, eclipses, and the changing seasons.

    • Sunrise & SunsetFind solar times and day length for any listed city.
    • Moon PhasesSee the live Moon, moonrise, moonset, and phase calendar.
    • Solar & Lunar EclipsesExplore upcoming eclipses and local visibility.
    • Equinoxes & SolsticesUnderstand the tilt, sunlight, and season changes.
    About & dataAbout World Time LabMethodology & Data SourcesReport an ErrorContact
  • Plan dates your wayCalendars & Dates

    Build calendars, count days, and answer practical date questions.

    • 2026 CalendarBrowse the full year with week numbers and holidays.
    • Printable Calendar MakerCustomize columns, colors, logos, holidays, PDF, and ICS.
    • Date CalculatorsAdd dates, count days, find weekdays, and check weeks.
    • Days Between DatesCalculate an exact calendar difference.
    • Add or Subtract a DateMove forward or backward by a duration.
    • Days UntilCreate or browse live event countdowns.
    About & dataAbout World Time LabMethodology & Data SourcesReport an ErrorContact
  • Measure every momentTimers

    Count down, measure laps, or test your reaction speed.

    • Online TimerCount down or up with speed, precision, and optional sound.
    • StopwatchMeasure elapsed time and visual lap splits.
    • Reaction Time TestMeasure keyboard or tap response in milliseconds.
    About & dataAbout World Time LabMethodology & Data SourcesReport an ErrorContact
  • Experiment with a worldPlanet Lab

    Change a planet, inspect the physics, and explore what-if scenarios.

    • Planet SimulatorBuild a world and see computed physical changes.
    • All What-If ScenariosBrowse climate, orbit, impact, and ocean experiments.
    • Snowball EarthFollow ice-albedo feedback across Earth.
    • Runaway GreenhouseExplore an illustrated Venus-like end state.
    • Asteroid ImpactReplay a staged impact, shock ring, and crater.
    • Mega-TsunamiWatch teaching wavefronts cross an ocean.
    About & dataAbout World Time LabMethodology & Data SourcesReport an ErrorContact
Explore World Time Lab

Tools & guides

    • Live World Clock
    • Time by City
    • Time by Country
    • Distance Between Cities
    • Day & Night Widget
    • Time Zone Converter
    • Meeting Time Finder
    • Time Zone Conversion Charts
    • Sunrise & Sunset
    • Moon Phases
    • Solar & Lunar Eclipses
    • Equinoxes & Solstices
    • 2026 Calendar
    • Printable Calendar Maker
    • Date Calculators
    • Days Between Dates
    • Add or Subtract a Date
    • Days Until
    • Online Timer
    • Stopwatch
    • Reaction Time Test
    • Planet Simulator
    • All What-If Scenarios
    • Snowball Earth
    • Runaway Greenhouse
    • Asteroid Impact
    • Mega-Tsunami
About & data
About World Time LabMethodology & Data SourcesReport an ErrorContact
In this sectionWorld Clock
Explore time
  • Live World Clock
  • Time by City
  • Time by Country
Map tools
  • Distance Between Cities
  • Day & Night Widget
Home/Day and night widget

Day and night world map widget

Put a live map of where the sun is up on your own page. Set it up below, then copy one iframe.

Live preview

Preview scales to fit this page. The snippet asks for 640 by 420 pixels.

Options

View
Theme

Match visitor follows each reader's own light or dark setting.

Pinned places get a marker on the map and a live clock chip in the widget.

Behaviour

Drift is switched off automatically for readers who ask their system to reduce motion, whatever this box says.

Size

Anything outside 240 to 1600 wide, or 180 to 1200 tall, is clamped back into range.

Paste this into your page

Every option

Options travel in the query string of the frame address. Each one is read on its own and clamped to something sensible, so a typo changes one setting instead of breaking the widget. The schema is versioned with v: if a link carries a version this build does not recognise, the widget ignores the whole option set and draws the defaults rather than applying half of an unknown configuration.

view
globe (default) draws an orthographic sphere. flat draws an equirectangular world map, kept at its true 2:1 shape and letterboxed inside your frame instead of stretched, because a stretched map misstates every distance on it.
theme
auto (default) follows each reader's own light or dark setting. dark and light pin it.
places
A comma separated list of up to 4 identifiers, drawn from 158 cities and 197countries and territories. Each one gets a marker on the map and a live clock. An identifier that is not in the dataset is dropped in silence: the widget will never invent a place or guess which city you meant. A country pin carries the time zone that governs that country's own reference coordinate, and the picker says which zone that is when a country uses more than one. On a small frame, one or two pins read best: four clock chips crowd a 300 pixel square.
controls
1 (default) shows the small view and motion buttons in the corner of the frame. 0 hides them and leaves a clean map.
spin
1 (default) lets the globe drift slowly. 0 holds it still. Either way, a reader whose system asks for reduced motion gets a still map that repaints once a minute and nothing more.
w and h
The frame size the snippet asks for, from 240 to 1600 wide and 180 to 1200 tall, in CSS pixels. Values outside that range are clamped. The widget itself always fills whatever box you give it, so it stays correct inside a responsive layout.

What it computes, and what it does not

The daylight and night sides are physics, not decoration. For every pixel the widget recovers the point on Earth's surface, takes the dot product of that point with the direction of the sun, and gets the sine of the sun's altitude there. The shadow then ramps through civil, nautical and astronomical twilight, with a warm band along the terminator where the sky really does glow. The sun marker sits at the subsolar point: the single place where the sun is directly overhead at that instant. Solar positions come from the standard NOAA and Meeus equations, accurate to about a minute for sunrise and sunset outside the polar regions.

Local times come from the reader's own browser, which carries the IANA time zone database, so daylight saving changes are as current as the browser is. Nothing about the reader is sent anywhere: the widget requests one file, the outline map on this site, makes no other network call, sets no cookies, and carries no advertising and no analytics. That last part is enforced in code rather than promised: the site-wide script loader returns nothing on the embed route, so even a fully monetized build of World Time Lab puts no advertising or analytics tag inside your page. It never asks for a location; the map opens on the reader's own meridian using the time zone offset the browser already reports.

What it is not: it is not weather, not cloud cover, and not a photograph. Country outlines are a simplified 110m Natural Earth map, fine at widget size and far too coarse for measuring anything. Time zone boundaries are not drawn at all in the widget, so a country marker shows one zone rather than every zone that country uses. For those, the full world clock globe has the real boundary polygons.

Accessibility notes

A map is useless to a reader who cannot see it, so the widget says the same thing in words. The canvas is exposed as an image with a name and a description that are written from the same solar computation as the pixels: which regions have the sun up, which are in twilight, which are in night, where the sun is overhead, and the local time and daylight state at every pinned place. Both are refreshed with the minute.

  • The description names each region after testing the sun at one reference point inside it, and says so, because a region as large as Africa can be lit at one end and dark at the other.
  • The view and motion buttons are real buttons with pressed states, reachable by keyboard, with a visible focus ring.
  • Clock chips update quietly rather than announcing themselves every minute, which would make the widget hostile to listen to. Changes you make with the buttons are announced.
  • Keep the title attribute on the iframe. Without it, screen reader users meet an unlabelled frame. The configurator fills in a sensible default.
  • With JavaScript switched off the frame shows a short written explanation instead of a dead canvas. It states no time and no sun position, because a static page cannot honestly know either.

Attribution and terms

The widget is free to use on any site, personal or commercial. The one condition is that the small World Time Lab link in the corner of the frame stays visible and clickable. It is deliberately restrained, it opens in a new tab, and it carries rel="nofollow noopener" so it passes no ranking signal and cannot touch the page that frames it.

Please embed the frame from this site rather than copying the code into your own build: that way daylight saving changes, time zone corrections and accessibility fixes reach your readers without you doing anything. Frame the widget as it is, do not overlay advertising on it, and do not present it as your own product. No advertising renders inside the frame, and the embed route is excluded from the ad and analytics loader in code so that stays true as the rest of the site changes.

Map outlines come from Natural Earth (public domain). Solar positions are computed from published NOAA and Meeus equations. Time zone rules come from the reader's browser.

The full day and night globeCity clocksSunrise and sunset times
World clock globeTime zone converterMeeting Time FinderTime by countryTime by cityConverter pagesSunrise and sunsetMoon phasesEclipsesSeasonsPlanet LabCalendarPrintable calendar makerDate calculatorsCountdownsTimerStopwatchReaction timeDistanceEmbeddable widget
AboutMethodology & data sourcesReport an errorContactPrivacyCookiesTerms

World Time Lab shows live day and night across the planet. Sun positions are computed with standard NOAA solar equations, and local times come from your browser's own IANA time zone database, so every calculation on this site runs on your device. This build loads no advertising, no analytics, and no third-party scripts at all, and asks for no account. It never asks where you are unless you press "Use my location" on an eclipse page, and that reading stays in your browser. The privacy page explains what that does and does not cover.

© 2026 World Time Lab · v2026.7.5· this build shipped July 24, 2026. Times are shown to the minute and can differ by a minute or two from horizon observations. Time zone boundaries derived from the timezone-boundary-builder project (ODbL); map shapes from Natural Earth; named administrative boundaries from geoBoundaries gbOpen with source years and licenses varying by country. City search data © GeoNames under CC BY 4.0, transformed for prefix search and updated July 2026. Seasons view climate groups derived from the Kottek et al. Koeppen-Geiger world map (2006).