Matsya Purana (Jyotisha Selections) · by Vyasa
Chapter 4 · The Sun's Paths, Day and Night
सूर्यगतिः
एवं गतिविशेषेण विभजन् रात्र्यहानि तु ।अजवीथ्यां दक्षिणायां लोकालोकस्य चोत्तरम् ॥ ७८ ॥
In the full Matsya Purana this is print ch 123 (standard ch 124), verse 78.
So, by the difference in its pace, it divides the nights and the days. It goes in the southern Ajavithi, north of Lokaloka.
Simple meaning: The Sun divides day and night by its changing pace. In the south it runs on Ajavithi, north of Lokaloka.
तस्मात् सन्ध्येति तामाहुरुषाव्युष्टैर्यथान्तरम् ।
Twilight is the gap between the end of night and daybreak. One side counts as night, one as day.
त्रिंशत्कलो मुहूर्तस्तु अहस्ते दशपञ्च च ।
A muhurta is 30 kalas. The day has 15 muhurtas. Days shrink and grow by parts of the day.
सन्ध्या मुहूर्तमात्रायां ह्रासवृद्धी तु ते स्मृते ।
Twilight lasts one muhurta, whether days are short or long. Then comes the Sun's rise past the horizon line.