content: import 'package:get/get.dart';
  import 'package:intl/intl.dart';
  import 'package:ramadan/utils/constants/string_constant.dart';
  
  class DateTimeFormatter {
    RxString formatTodayDate() {
      final today = DateTime.now();
  
      // Türkçe gün isimleri için sabit bir liste oluştur
      final dayNames = <String>[
        StringHomeConstant.mon,
        StringHomeConstant.tue,
        StringHomeConstant.wed,
        StringHomeConstant.thu,
        StringHomeConstant.fri,
        StringHomeConstant.sat,
        StringHomeConstant.sun,
      ];
  
      // Tarih bilgisini oluşturulan listeye göre formatla
      final formattedDate = '${dayNames[today.weekday - 1]}, ${today.day} ${_getMonth(today.month)}';
  
      return formattedDate.obs;
    }
  
    String _getMonth(int month) {
      // Türkçe ay isimleri için sabit bir liste oluştur
      final monthNames = <String>[
        StringHomeConstant.jan,
        StringHomeConstant.feb,
        StringHomeConstant.mar,
        StringHomeConstant.apr,
        StringHomeConstant.may,
        StringHomeConstant.jun,
        StringHomeConstant.jul,
        StringHomeConstant.aug,
        StringHomeConstant.sep,
        StringHomeConstant.oct,
        StringHomeConstant.nov,
        StringHomeConstant.dec,
      ];
  
      return monthNames[month - 1];
    }
  
    DateTime getPrayerTime(String prayerDate) {
      final parsedData = DateFormat('dd MMMM, EEEE', 'tr_TR').parse(prayerDate);
      return DateTime(2024, parsedData.month, parsedData.day);
    }
  
    DateTime targetDateTime(String prayerTime) {
      final time = DateFormat('HH:mm', 'tr_TR').parse(prayerTime);
      return time;
    }
  }
  