예제 #1
0
        public PrayerTimeDto GetFormattedTimes(TimeFormats format)
        {
            var ptime = new PrayerTimeDto();

            ptime.Fajr = FormatTime(Fajr, format);
            ptime.Dhuhur = FormatTime(Dhuhur, format);
            ptime.Asr = FormatTime(Asr, format);
            ptime.Magrib = FormatTime(Magrib, format);
            ptime.Isha = FormatTime(Isha, format);

            return ptime;
        }
예제 #2
0
        public PrayerTimeDto GetFormattedTimes(TimeFormats format)
        {
            var ptime = new PrayerTimeDto();

            ptime.Imsak = FormatTime(Imsak, format);
            ptime.Fajr = FormatTime(Fajr, format);
            ptime.Sunrise = FormatTime(Sunrise, format);
            ptime.Dhuhur = FormatTime(Dhuhur, format);
            ptime.Asr = FormatTime(Asr, format);
            ptime.Sunset = FormatTime(Sunset, format);
            ptime.Magrib = FormatTime(Magrib, format);
            ptime.Isha = FormatTime(Isha, format);
            ptime.Midnight = FormatTime(Midnight, format);

            return ptime;
        }