Repository navigation
feat: days between dates in Turkish with date shifting - #29
Merged
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Adds
/tr/gun-hesaplama/, the Turkish page for the days-between-dates logic, and makes it the hreflang twin of/days-between-dates/.The page has two calculators:
between()fromsrc/date-diff.jsand the Turkish calendar helpers insrc/yas.js. It shows total days, years/months/days, weeks, months, weekdays and weekend days, with the optional "Bitiş gününü de say". The start date defaults to today, so "kaç gün kaldı" only needs an end date. Fields are day first, and a pasted15.05.1990is spread over the three fields.shiftDays()indate-diff.jsis tested and returns null outside the years 1-9999.Keywords (Semrush TR, 2 Dec 2026)
The "gün hesaplama" top 10 are all days-between-dates tools: hesaplama.net (AS 63), ewreka (14), hurriyet (98), hakedis (34), onlinealarmkur (58), milliyet (95), hesapla.app (30), medhesap (36), hesapmakinesi (17), hesaplamaci (19). "tarih hesaplama" has the same pages plus tarih.hesaplama.net, which adds days to a date, so this page covers that too.
Slug:
gun-hesaplamaexactly matches the biggest term, and two ranking pages use it (ewreka.net/gun-hesaplama, hesaplamaci.com/gun-hesaplama).Twin: the search intent is the same as "days between dates", so the EN and TR pages are now paired with
alternates. The TR index lists the Turkish page instead of the English one with a badge./tr/yas-hesaplama/stays separate.Copy
The holiday paragraph lists the dates from 2429 sayılı Kanun (checked on mevzuat.gov.tr today). The month-end rule cites TBK md. 92, as the age page does. The Excel FAQ links Microsoft's Turkish help page, which covers TARİHFARKI and TAMİŞGÜNÜ.ULUSL.
Checks
npm test: 203 passnpm run check:pwa: passes