1import{j as e,S as B,L as p,r as x}from"./index-BRVihy0y.js";const t={ink:"#1a1a2e",body:"#333333",soft:"#666666",amber:"#f59e0b",amberText:"#b45309",warmBg:"#fff7ed",warmLine:"#f5d9a8",amberBg:"#fff8e7",panel:"#f8f9fa",line:"#e7e3d8",white:"#ffffff"},f=n=>String(n).padStart(2,"0"),H=n=>document.getElementById(n)?.scrollIntoView({behavior:"smooth",block:"start"}),C=[["ð°ð® Kiribati (Line Is.)",14,"first on Earth"],["ð³ð¿ Auckland",13,""],["ð¦ðº Sydney",11,""],["ð¯ðµ Tokyo",9,""],["ð¨ð³ Beijing",8,""],["ð¦ðª Dubai",4,""],["ð¬ð§ London",0,""],["ðºð¸ New York",-5,""],["ðºð¸ Los Angeles",-8,""],["ðºð¸ Honolulu",-10,""],["ð¼ð¸ American Samoa",-11,""],["Baker Island (uninhabited)",-12,"last on Earth"]];function M(){const[n,s]=x.useState(()=>new Date);x.useEffect(()=>{const i=setInterval(()=>s(new Date),1e3);return()=>clearInterval(i)},[]);const r=n.getFullYear(),l=r+1,c=new Date(l,0,1,0,0,0,0),y=new Date(r,0,1,0,0,0,0).getTime(),d=c.getTime(),a=Math.max(0,d-n.getTime()),h=Math.floor(a/864e5),b=Math.floor(a%864e5/36e5),j=Math.floor(a%36e5/6e4),v=Math.floor(a%6e4/1e3),g=Math.min(100,Math.max(0,(n.getTime()-y)/(d-y)*100)),w=new Date(n);w.setHours(0,0,0,0);const T=Math.round((d-w.getTime())/864e5),k=-new Date(l,0,1).getTimezoneOffset()/60,m=(i,o)=>e.jsxs("div",{style:{textAlign:"center",flex:1,minWidth:56},children:[e.jsx("div",{style:{fontSize:"clamp(30px, 9vw, 46px)",fontWeight:800,color:t.ink,lineHeight:1,fontVariantNumeric:"tabular-nums"},children:i}),e.jsx("div",{style:{fontSize:11,fontWeight:700,color:t.soft,textTransform:"uppercase",letterSpacing:"0.05em",marginTop:5},children:o})]}),S=i=>{const o=Math.round((i-k)*10)/10;return Math.abs(o)<.25?"same time as you":o>0?`${o}h before you`:`${Math.abs(o)}h after you`};return e.jsxs("div",{children:[e.jsxs("div",{style:{background:t.warmBg,border:`1px solid ${t.warmLine}`,borderRadius:16,padding:20},children:[e.jsxs("div",{style:{textAlign:"center",fontSize:13,fontWeight:800,color:t.amberText,textTransform:"uppercase",letterSpacing:"0.05em",marginBottom:4},children:["ð Countdown to ",l]}),e.jsxs("div",{style:{textAlign:"center",fontSize:14,fontWeight:700,color:t.body,marginBottom:14},children:["1 January ",l," · ",h," ",h===1?"day":"days"," to go"]}),e.jsxs("div",{style:{display:"flex",gap:6,justifyContent:"space-between"},children:[m(h,"days"),m(f(b),"hrs"),m(f(j),"min"),m(f(v),"sec")]})]}),e.jsxs("div",{style:{marginTop:14,background:t.white,border:`1px solid ${t.line}`,borderRadius:12,padding:"16px 16px"},children:[e.jsxs("div",{style:{display:"flex",justifyContent:"space-between",fontSize:13,fontWeight:700,color:t.soft,marginBottom:8},children:[e.jsxs("span",{children:[r," is ",g.toFixed(1),"% done"]}),e.jsxs("span",{children:[T," days left in the year"]})]}),e.jsx("div",{style:{height:14,background:t.panel,border:`1px solid ${t.line}`,borderRadius:999,overflow:"hidden"},children:e.jsx("div",{style:{width:`${g}%`,height:"100%",background:t.amber,transition:"width 1s linear"}})})]}),e.jsxs("div",{style:{marginTop:14},children:[e.jsx("div",{style:{fontSize:12,fontWeight:800,color:t.soft,textTransform:"uppercase",letterSpacing:"0.05em",marginBottom:8},children:"When New Year reaches the world â relative to you"}),e.jsx("div",{style:{background:t.white,border:`1px solid ${t.line}`,borderRadius:12,overflow:"hidden"},children:C.map(([i,o,u],z)=>{const W=u!=="";return e.jsxs("div",{style:{display:"flex",alignItems:"center",justifyContent:"space-between",gap:10,padding:"10px 14px",borderTop:z?`1px solid ${t.line}`:"none",background:W?t.amberBg:t.white},children:[e.jsxs("div",{style:{fontSize:14,fontWeight:700,color:t.ink},children:[i,u&&e.jsx("span",{style:{fontSize:11,fontWeight:800,color:t.amberText,marginLeft:8,textTransform:"uppercase",letterSpacing:"0.04em"},children:u})]}),e.jsxs("div",{style:{fontSize:12.5,fontWeight:700,color:t.soft,whiteSpace:"nowrap"},children:["UTC",o>=0?"+":"",o," · ",S(o)]})]},i)})}),e.jsx("div",{style:{fontSize:12,color:t.soft,marginTop:8,lineHeight:1.5},children:"The whole planet takes about 26 hours to cross into the new year â from Kiribati to Baker Island. The timer above hits zero at your local midnight."})]})]})}function D(){const n={maxWidth:760,margin:"0 auto",padding:"0 20px"},s={fontSize:26,fontWeight:800,color:t.ink,margin:"0 0 12px",lineHeight:1.25,letterSpacing:"-0.01em"},r={fontSize:16,lineHeight:1.7,color:t.body,margin:"0 0 16px"},l={flex:"1 1 200px",background:t.amber,color:t.ink,fontWeight:800,fontSize:15,padding:"13px 18px",borderRadius:10,border:"none",cursor:"pointer",textAlign:"center"},c={background:t.white,border:`1px solid ${t.line}`,borderRadius:14,padding:"22px 22px"},y={padding:"8px 0",background:t.white},d=[{question:"Where does New Year happen first?",answer:"In the Line Islands of Kiribati, on UTC+14 â the furthest-forward time zone on Earth. They see midnight roughly 26 hours before the last inhabited places to the far east of the date line."},{question:"Where is the last place to ring in the new year?",answer:"The uninhabited Howland and Baker Islands sit on UTCâ12 and cross over last. Among populated places, American Samoa (UTCâ11) is effectively the final New Year â about a day behind neighbouring Samoa, which switched sides of the date line in 2011."},{question:"Does the countdown use my time zone?",answer:"Yes. It reaches zero at midnight on 1 January where you are. The list below it shows how many hours earlier or later other places cross over, relative to your own moment."},{question:"How many days are left in the year?",answer:"The progress bar shows it live, along with how far through the current year you already are â the same countdown, read the other way round."}];return e.jsxs(e.Fragment,{children:[e.jsx(B,{title:"How Many Days Until New Year? Live Countdown + Year Progress",description:"A live countdown to 1 January â days, hours, minutes, seconds â plus how much of this year is already gone, and the 26-hour wave in which New Year reaches the world relative to you.",canonical:"https://www.howmany.pro/how-many-days-until-new-year",canonicalUrl:"https://www.howmany.pro/how-many-days-until-new-year",faqSchema:d}),e.jsx("div",{style:{background:t.white,borderBottom:`1px solid ${t.line}`},children:e.jsxs("nav",{style:{...n,padding:"12px 20px",fontSize:13,color:t.soft},children:[e.jsx(p,{to:"/",style:{color:t.amberText,textDecoration:"none",fontWeight:600},children:"Home"}),e.jsx("span",{style:{margin:"0 8px"},children:"/"}),e.jsx(p,{to:"/time-and-calendar",style:{color:t.amberText,textDecoration:"none",fontWeight:600},children:"Time & Calendar"}),e.jsx("span",{style:{margin:"0 8px"},children:"/"}),e.jsx("span",{style:{color:t.soft},children:"How Many Days Until New Year"})]})}),e.jsx("section",{style:{background:t.white,padding:"40px 0 8px"},children:e.jsxs("div",{style:n,children:[e.jsx("h1",{style:{fontSize:"clamp(30px, 6vw, 44px)",fontWeight:800,color:t.ink,lineHeight:1.15,margin:"0 0 14px",letterSpacing:"-0.02em"},children:"How Many Days Until New Year?"}),e.jsx("p",{style:{fontSize:18,lineHeight:1.6,color:t.body,margin:"0 0 18px"},children:"The number is the same everywhere â but New Year itself isn't a single moment. It sweeps across the planet over about 26 hours, so it has already happened somewhere long before it reaches you. The same countdown is also a quiet readout of how much of this year is already gone."}),e.jsx("div",{style:{display:"flex",gap:10,flexWrap:"wrap",marginBottom:28},children:e.jsx("button",{onClick:()=>H("countdown"),style:l,children:"â Open the countdown"})}),e.jsx("div",{id:"countdown",style:{scrollMarginTop:16},children:e.jsx(M,{})})]})}),e.jsx("div",{style:y,children:e.jsx("div",{style:n,children:e.jsx("ins",{className:"adsbygoogle",style:{display:"block"},"data-ad-client":"ca-pub-3498543248864380","data-ad-slot":"auto","data-ad-format":"auto","data-full-width-responsive":"true"})})}),e.jsx("section",{style:{background:t.white,padding:"32px 0 8px"},children:e.jsxs("div",{style:n,children:[e.jsx("h2",{style:s,children:"New Year arrives in a 26-hour wave"}),e.jsxs("p",{style:r,children:["There is no instant when the whole world becomes one year older together. The first celebrations happen in the Line Islands of Kiribati, on UTC+14, and the wave then rolls westward across the globe. New Zealand and the eastern edge of Australia follow within a few hours; London is about half a day behind Sydney; and by the time New York counts down, much of the planet is already well into 1 January. The very last places to cross over are the uninhabited Howland and Baker Islands on UTCâ12 â a full 26 hours after Kiribati. The list in the widget pins each of those moments to ",e.jsx("em",{children:"your"})," midnight, so you can see exactly how far ahead or behind you the rest of the world is."]}),e.jsx("h2",{style:{...s,marginTop:32},children:"The day Samoa skipped to change sides"}),e.jsx("p",{style:r,children:"The date line isn't a straight northâsouth line â it zig-zags around national borders by choice. In December 2011, Samoa jumped from the eastern side of the line to the western, skipping 30 December entirely, to align its working week with Australia and New Zealand rather than the United States. Overnight it went from being one of the last places to
1see the new year to one of the first. Its neighbour American Samoa stayed put, so the two, only a short flight apart, now ring in the new year almost a full day apart."}),e.jsx("div",{style:{...y,margin:"8px 0"},children:e.jsx("ins",{className:"adsbygoogle",style:{display:"block"},"data-ad-client":"ca-pub-3498543248864380","data-ad-slot":"auto","data-ad-format":"auto","data-full-width-responsive":"true"})}),e.jsx("h2",{style:{...s,marginTop:24},children:"Why 1 January at all"}),e.jsxs("p",{style:r,children:["The new year hasn't always started in midwinter. Julius Caesar's calendar reform, taking effect in 45 BC, fixed 1 January as the start of the year â the month named after Janus, the Roman god of doorways, shown with two faces looking back at the old year and forward into the new. Much of medieval Europe later moved the official new year to 25 March, and Britain and its colonies didn't settle back on 1 January until 1752. To count down to any other date that matters to you, the"," ",e.jsx(p,{to:"/how-many-until-calculator",style:{color:t.amberText,fontWeight:700},children:"Until Calculator"})," ","handles birthdays, deadlines and holidays in one place."]})]})}),e.jsx("section",{style:{background:t.panel,padding:"40px 0",borderTop:`1px solid ${t.line}`},children:e.jsxs("div",{style:n,children:[e.jsx("h2",{style:{...s,textAlign:"center",marginBottom:24},children:"Frequently asked questions"}),d.map(a=>e.jsxs("div",{style:{...c,marginBottom:12},children:[e.jsx("h3",{style:{fontSize:16,fontWeight:800,color:t.ink,margin:"0 0 6px"},children:a.question}),e.jsx("p",{style:{fontSize:15,lineHeight:1.6,color:t.body,margin:0},children:a.answer})]},a.question))]})}),e.jsx("section",{style:{background:t.white,padding:"32px 0"},children:e.jsx("div",{style:n,children:e.jsxs("div",{style:c,children:[e.jsx("div",{style:{fontSize:12,fontWeight:800,color:t.amberText,textTransform:"uppercase",letterSpacing:"0.06em",marginBottom:12},children:"Sources"}),e.jsxs("ul",{style:{margin:0,padding:"0 0 0 18px",color:t.body,fontSize:14,lineHeight:1.7},children:[e.jsx("li",{children:"Time-zone offsets are 1-January values (southern-hemisphere zones are on summer time); the countdown uses the visitor's local device time."}),e.jsx("li",{children:"Kiribati's Line Islands (UTC+14) reach the new year first; Howland and Baker Islands (UTCâ12) last â a span of about 26 hours."}),e.jsx("li",{children:"Samoa moved across the International Date Line in December 2011, skipping 30 December."}),e.jsx("li",{children:"1 January as new year's start dates to the Julian reform (45 BC); January is named for Janus. Britain adopted 1 January in 1752."})]})]})})}),e.jsx("section",{style:{background:t.panel,padding:"32px 0 48px",borderTop:`1px solid ${t.line}`},children:e.jsxs("div",{style:n,children:[e.jsxs("div",{style:c,children:[e.jsx("div",{style:{fontSize:12,fontWeight:800,color:t.amberText,textTransform:"uppercase",letterSpacing:"0.06em",marginBottom:14},children:"Keep counting down"}),e.jsx("div",{style:{display:"grid",gridTemplateColumns:"repeat(auto-fit, minmax(220px, 1fr))",gap:10},children:[["How Many Days Until Christmas","/how-many-days-until-christmas"],["How Many Days Until My Birthday","/how-many-days-until-my-birthday"],["The Until Calculator","/how-many-until-calculator"],["How Many Weeks Left in the Year","/how-many-weeks-left-in-the-year"],["How Many Weeks Into the Year","/how-many-weeks-into-the-year"],["How Many Time Zones in the World","/how-many-time-zones-in-the-world"],["Time & Calendar hub","/time-and-calendar"],["ð² Surprise me","/explore"]].map(([a,h])=>e.jsx(p,{to:h,style:{display:"block",textDecoration:"none",background:t.white,border:`1px solid ${t.line}`,borderLeft:`3px solid ${t.amber}`,borderRadius:8,padding:"12px 14px",fontSize:14,fontWeight:700,color:t.ink},children:a},h))})]}),e.jsx("p",{style:{fontSize:15,lineHeight:1.7,color:t.soft,fontStyle:"italic",textAlign:"center",margin:"24px auto 0",maxWidth:600},children:"By the time it reaches you, the new year is already most of a day old somewhere else â and this year is already as far gone as the bar above says."})]})})]})}export{D as default};
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.