Bhavishya Purana (Jyotisha Selections) · by Vyasa
Chapter 10 · Months, the Adhika Masa and Tithi Rules
मासाधिमासतिथिनिर्णयः
निशि तु स्याद्यदा षष्ठी सप्तमी नवमी दिवा ।उपोष्य केवलां षष्ठीं तोषयेद्भास्करं नरः ॥ ३६ ॥
In the full Bhavishya Purana this is Madhyama Parva part 2, chapter 7, verse 36.
When Shashthi is in the night and Saptami by day, fast on Shashthi alone. That pleases the Sun. (Our text is unclear here: the line also names Navami, which does not fit.)
Simple meaning: When the sixth falls at night and the seventh by day, fast on the sixth alone to please the Sun.
एवं त्रयोदशीं कृष्णां विधिप्राप्तां विना द्विजाः ।
A fast on the dark thirteenth may please Shiva, even when the rule is not met.
दिवा त्रयोदशीयुक्ता कृष्णोपोष्या चतुर्दशी ।
Fast on the dark fourteenth joined with the thirteenth. Do not do it on the new moon.
त्रिसंध्यव्यापिनीं प्राप्य यदि कुर्यादुपोषणम् ।
If you fast on the moon day that fills the day's three junctions, break the fast on Sinivali.