Repository: TRoboto/Maha (language: python)

Issue:
Cannot extract the date in time parsing correctly
### What happened?

The time parser cannot extract the date in its different types correctly.

Example: 

- ١١-١٠-٢٠٢١
- 11-10-2021
- ٣/١٠/٢٠٢١
- 10/3/2021

### Python version

3.8

### What operating system are you using?

Linux

### Code to reproduce the issue

```py
>>> from maha.parsers.functions import parse_dimension
>>> sample_text_6 = "يوم الاثنين 11-10-2021 الساعه الواحدة ظهرا"
>>> output_time= parse_dimension(sample_text_6, time=True)
```

### Relevant log output

```python
[Dimension(body=يوم الاثنين 11-10, value=TimeValue(month=10, day=11, weekday=MO, hour=0, minute=0, second=0, microsecond=0), start=0, end=17, dimension_type=DimensionType.TIME),
 Dimension(body=الساعه الواحدة ظهرا, value=TimeValue(am_pm='AM', hour=1, minute=0, second=0, microsecond=0), start=23, end=42, dimension_type=DimensionType.TIME)]
```



Discussion / hints:

Fix patch:
diff --git a/maha/parsers/rules/time/rule.py b/maha/parsers/rules/time/rule.py
index c152a330..ae4ff098 100644
--- a/maha/parsers/rules/time/rule.py
+++ b/maha/parsers/rules/time/rule.py
@@ -205,12 +205,12 @@ def parse_time(match):
 RULE_TIME = FunctionValue(
     parse_time,
     combine_patterns(
-        month_day_group,
         year_month_day_group,
+        year_month_group,
+        month_day_group,
         hour_minute_second_group,
         hour_minute_group,
         hour_am_pm_group,
-        year_month_group,
         now_group,
         years_group,
         months_group,
diff --git a/maha/rexy/cache/1031577966745851711.crp b/maha/rexy/cache/1031577966745851711.crp
index 56635e56..6fca337a 100644
Binary files a/maha/rexy/cache/1031577966745851711.crp and b/maha/rexy/cache/1031577966745851711.crp differ
diff --git a/maha/rexy/cache/1047631870360839116.crp b/maha/rexy/cache/1047631870360839116.crp
index 8ae51120..ab202d09 100644
Binary files a/maha/rexy/cache/1047631870360839116.crp and b/maha/rexy/cache/1047631870360839116.crp differ
diff --git a/maha/rexy/cache/1061729131065062946.crp b/maha/rexy/cache/1061729131065062946.crp
index f389f3a8..7415947b 100644
Binary files a/maha/rexy/cache/1061729131065062946.crp and b/maha/rexy/cache/1061729131065062946.crp differ
diff --git a/maha/rexy/cache/1084792521307801884.crp b/maha/rexy/cache/1084792521307801884.crp
index 27613f64..f63232b7 100644
Binary files a/maha/rexy/cache/1084792521307801884.crp and b/maha/rexy/cache/1084792521307801884.crp differ
diff --git a/maha/rexy/cache/1098609110080424196.crp b/maha/rexy/cache/1098609110080424196.crp
index 1f64664b..372c629e 100644
Binary files a/maha/rexy/cache/1098609110080424196.crp and b/maha/rexy/cache/1098609110080424196.crp differ
diff --git a/maha/rexy/cache/1114935795093392389.crp b/maha/rexy/cache/1114935795093392389.crp
index b0a225cd..711fe47a 100644
Binary files a/maha/rexy/cache/1114935795093392389.crp and b/maha/rexy/cache/1114935795093392389.crp differ
diff --git a/maha/rexy/cache/1132041905498580056.crp b/maha/rexy/cache/1132041905498580056.crp
index c222ed0a..79bff307 100644
Binary files a/maha/rexy/cache/1132041905498580056.crp and b/maha/rexy/cache/1132041905498580056.crp differ
diff --git a/maha/rexy/cache/1141432581961374340.crp b/maha/rexy/cache/1141432581961374340.crp
index 8119ad81..e5a3fd9f 100644
Binary files a/maha/rexy/cache/1141432581961374340.crp and b/maha/rexy/cache/1141432581961374340.crp differ
diff --git a/maha/rexy/cache/1176192066873399265.crp b/maha/rexy/cache/1176192066873399265.crp
index 444bfe0a..4fe670f2 100644
Binary files a/maha/rexy/cache/1176192066873399265.crp and b/maha/rexy/cache/1176192066873399265.crp differ
diff --git a/maha/rexy/cache/1190162905066732605.crp b/maha/rexy/cache/1190162905066732605.crp
index 006a342c..4d6065de 100644
Binary files a/maha/rexy/cache/1190162905066732605.crp and b/maha/rexy/cache/1190162905066732605.crp differ
diff --git a/maha/rexy/cache/1219946796474845018.crp b/maha/rexy/cache/1219946796474845018.crp
index cf558cab..5e12f697 100644
Binary files a/maha/rexy/cache/1219946796474845018.crp and b/maha/rexy/cache/1219946796474845018.crp differ
diff --git a/maha/rexy/cache/122466667616608736.crp b/maha/rexy/cache/122466667616608736.crp
index a9add6b8..0beedbb6 100644
Binary files a/maha/rexy/cache/122466667616608736.crp and b/maha/rexy/cache/122466667616608736.crp differ
diff --git a/maha/rexy/cache/1242477589173004866.crp b/maha/rexy/cache/1242477589173004866.crp
index 7da184aa..2e10fde5 100644
Binary files a/maha/rexy/cache/1242477589173004866.crp and b/maha/rexy/cache/1242477589173004866.crp differ
diff --git a/maha/rexy/cache/1274278154179042362.crp b/maha/rexy/cache/1274278154179042362.crp
index d6455a9d..1947c41f 100644
Binary files a/maha/rexy/cache/1274278154179042362.crp and b/maha/rexy/cache/1274278154179042362.crp differ
diff --git a/maha/rexy/cache/1282388511617275877.crp b/maha/rexy/cache/1282388511617275877.crp
index 5b54e537..eb31f1b8 100644
Binary files a/maha/rexy/cache/1282388511617275877.crp and b/maha/rexy/cache/1282388511617275877.crp differ
diff --git a/maha/rexy/cache/1301314018466712804.crp b/maha/rexy/cache/1301314018466712804.crp
index 8b219f90..8adccc6c 100644
Binary files a/maha/rexy/cache/1301314018466712804.crp and b/maha/rexy/cache/1301314018466712804.crp differ
diff --git a/maha/rexy/cache/1344619313821264840.crp b/maha/rexy/cache/1344619313821264840.crp
index 663e3914..8590f97f 100644
Binary files a/maha/rexy/cache/1344619313821264840.crp and b/maha/rexy/cache/1344619313821264840.crp differ
diff --git a/maha/rexy/cache/1348387319838165193.crp b/maha/rexy/cache/1348387319838165193.crp
index b884d4c9..9bf12708 100644
Binary files a/maha/rexy/cache/1348387319838165193.crp and b/maha/rexy/cache/1348387319838165193.crp differ
diff --git a/maha/rexy/cache/1350071178380381244.crp b/maha/rexy/cache/1350071178380381244.crp
index 0694cef6..4083dac3 100644
Binary files a/maha/rexy/cache/1350071178380381244.crp and b/maha/rexy/cache/1350071178380381244.crp differ
diff --git a/maha/rexy/cache/1394248543064622316.crp b/maha/rexy/cache/1394248543064622316.crp
index eaa07985..7df932ca 100644
Binary files a/maha/rexy/cache/1394248543064622316.crp and b/maha/rexy/cache/1394248543064622316.crp differ
diff --git a/maha/rexy/cache/1420162632855444506.crp b/maha/rexy/cache/1420162632855444506.crp
index 533ace8e..0b0a811b 100644
Binary files a/maha/rexy/cache/1420162632855444506.crp and b/maha/rexy/cache/1420162632855444506.crp differ
diff --git a/maha/rexy/cache/1489842715964901109.crp b/maha/rexy/cache/1489842715964901109.crp
index 36f1bdcd..20c905ec 100644
Binary files a/maha/rexy/cache/1489842715964901109.crp and b/maha/rexy/cache/1489842715964901109.crp differ
diff --git a/maha/rexy/cache/1514834502216725727.crp b/maha/rexy/cache/1514834502216725727.crp
index 9ca3fbc9..bd71e04c 100644
Binary files a/maha/rexy/cache/1514834502216725727.crp and b/maha/rexy/cache/1514834502216725727.crp differ
diff --git a/maha/rexy/cache/1519560617664378919.crp b/maha/rexy/cache/1519560617664378919.crp
index c94fff52..c05e692e 100644
Binary files a/maha/rexy/cache/1519560617664378919.crp and b/maha/rexy/cache/1519560617664378919.crp differ
diff --git a/maha/rexy/cache/1532674284943751900.crp b/maha/rexy/cache/1532674284943751900.crp
index 1f617969..47c5245b 100644
Binary files a/maha/rexy/cache/1532674284943751900.crp and b/maha/rexy/cache/1532674284943751900.crp differ
diff --git a/maha/rexy/cache/1639410944266178145.crp b/maha/rexy/cache/1554390693237737629.crp
similarity index 81%
rename from maha/rexy/cache/1639410944266178145.crp
rename to maha/rexy/cache/1554390693237737629.crp
index 8b5b09f2..ad67d19c 100644
Binary files a/maha/rexy/cache/1639410944266178145.crp and b/maha/rexy/cache/1554390693237737629.crp differ
diff --git a/maha/rexy/cache/1629510216642020348.crp b/maha/rexy/cache/1629510216642020348.crp
index 49c47cfc..fe7a3518 100644
Binary files a/maha/rexy/cache/1629510216642020348.crp and b/maha/rexy/cache/1629510216642020348.crp differ
diff --git a/maha/rexy/cache/1658873670083126259.crp b/maha/rexy/cache/1658873670083126259.crp
index bc653ae2..7dbcb362 100644
Binary files a/maha/rexy/cache/1658873670083126259.crp and b/maha/rexy/cache/1658873670083126259.crp differ
diff --git a/maha/rexy/cache/1741507498841088482.crp b/maha/rexy/cache/1741507498841088482.crp
index 1338e531..8481b751 100644
Binary files a/maha/rexy/cache/1741507498841088482.crp and b/maha/rexy/cache/1741507498841088482.crp differ
diff --git a/maha/rexy/cache/1766691931390518612.crp b/maha/rexy/cache/1766691931390518612.crp
index 0141a255..ce2e560f 100644
Binary files a/maha/rexy/cache/1766691931390518612.crp and b/maha/rexy/cache/1766691931390518612.crp differ
diff --git a/maha/rexy/cache/1803771547264942918.crp b/maha/rexy/cache/1803771547264942918.crp
index 5f2229cb..e9350a97 100644
Binary files a/maha/rexy/cache/1803771547264942918.crp and b/maha/rexy/cache/1803771547264942918.crp differ
diff --git a/maha/rexy/cache/1869951000334868637.crp b/maha/rexy/cache/1869951000334868637.crp
index 6880ce39..181d5c02 100644
Binary files a/maha/rexy/cache/1869951000334868637.crp and b/maha/rexy/cache/1869951000334868637.crp differ
diff --git a/maha/rexy/cache/1920719143030869980.crp b/maha/rexy/cache/1920719143030869980.crp
index 6850ce22..ed22af4c 100644
Binary files a/maha/rexy/cache/1920719143030869980.crp and b/maha/rexy/cache/1920719143030869980.crp differ
diff --git a/maha/rexy/cache/1922359042520177326.crp b/maha/rexy/cache/1922359042520177326.crp
index 72cb69d3..33849da7 100644
Binary files a/maha/rexy/cache/1922359042520177326.crp and b/maha/rexy/cache/1922359042520177326.crp differ
diff --git a/maha/rexy/cache/1933953894573845731.crp b/maha/rexy/cache/1933953894573845731.crp
index 810fbf10..bd1ca619 100644
Binary files a/maha/rexy/cache/1933953894573845731.crp and b/maha/rexy/cache/1933953894573845731.crp differ
diff --git a/maha/rexy/cache/1992155800567845138.crp b/maha/rexy/cache/1992155800567845138.crp
index 555953eb..2a6083d4 100644
Binary files a/maha/rexy/cache/1992155800567845138.crp and b/maha/rexy/cache/1992155800567845138.crp differ
diff --git a/maha/rexy/cache/2017307429553252430.crp b/maha/rexy/cache/2017307429553252430.crp
index 11ff9683..3d5eca61 100644
Binary files a/maha/rexy/cache/2017307429553252430.crp and b/maha/rexy/cache/2017307429553252430.crp differ
diff --git a/maha/rexy/cache/202388887162294941.crp b/maha/rexy/cache/202388887162294941.crp
index 3ab0b013..525c5d96 100644
Binary files a/maha/rexy/cache/202388887162294941.crp and b/maha/rexy/cache/202388887162294941.crp differ
diff --git a/maha/rexy/cache/2024442452855574452.crp b/maha/rexy/cache/2024442452855574452.crp
index 6a9d8070..cbd5fec0 100644
Binary files a/maha/rexy/cache/2024442452855574452.crp and b/maha/rexy/cache/2024442452855574452.crp differ
diff --git a/maha/rexy/cache/2057079240165316147.crp b/maha/rexy/cache/2057079240165316147.crp
index ef631841..61bc21b4 100644
Binary files a/maha/rexy/cache/2057079240165316147.crp and b/maha/rexy/cache/2057079240165316147.crp differ
diff --git a/maha/rexy/cache/2079350996302151896.crp b/maha/rexy/cache/2079350996302151896.crp
index f11ec8fb..205e3b38 100644
Binary files a/maha/rexy/cache/2079350996302151896.crp and b/maha/rexy/cache/2079350996302151896.crp differ
diff --git a/maha/rexy/cache/2110096684829937865.crp b/maha/rexy/cache/2110096684829937865.crp
index a07a7a5f..a046684a 100644
Binary files a/maha/rexy/cache/2110096684829937865.crp and b/maha/rexy/cache/2110096684829937865.crp differ
diff --git a/maha/rexy/cache/2151821022374320594.crp b/maha/rexy/cache/2151821022374320594.crp
new file mode 100644
index 00000000..a2bcb984
Binary files /dev/null and b/maha/rexy/cache/2151821022374320594.crp differ
diff --git a/maha/rexy/cache/2154635403677834454.crp b/maha/rexy/cache/2154635403677834454.crp
index e57acd1a..a63213df 100644
Binary files a/maha/rexy/cache/2154635403677834454.crp and b/maha/rexy/cache/2154635403677834454.crp differ
diff --git a/maha/rexy/cache/2183098507009851187.crp b/maha/rexy/cache/2183098507009851187.crp
index 6377ce21..6ab965a3 100644
Binary files a/maha/rexy/cache/2183098507009851187.crp and b/maha/rexy/cache/2183098507009851187.crp differ
diff --git a/maha/rexy/cache/2184070805601146416.crp b/maha/rexy/cache/2184070805601146416.crp
index 7365398e..0788bdfe 100644
Binary files a/maha/rexy/cache/2184070805601146416.crp and b/maha/rexy/cache/2184070805601146416.crp differ
diff --git a/maha/rexy/cache/2197701005507059515.crp b/maha/rexy/cache/2197701005507059515.crp
index c4adc673..534ae343 100644
Binary files a/maha/rexy/cache/2197701005507059515.crp and b/maha/rexy/cache/2197701005507059515.crp differ
diff --git a/maha/rexy/cache/2201902455067657659.crp b/maha/rexy/cache/2201902455067657659.crp
index f3aeeaca..d2c51c12 100644
Binary files a/maha/rexy/cache/2201902455067657659.crp and b/maha/rexy/cache/2201902455067657659.crp differ
diff --git a/maha/rexy/cache/2214916142636930408.crp b/maha/rexy/cache/2214916142636930408.crp
index d4b42df7..0a0bfa77 100644
Binary files a/maha/rexy/cache/2214916142636930408.crp and b/maha/rexy/cache/2214916142636930408.crp differ
diff --git a/maha/rexy/cache/2223741128242393260.crp b/maha/rexy/cache/2223741128242393260.crp
index f6cf2076..267c829d 100644
Binary files a/maha/rexy/cache/2223741128242393260.crp and b/maha/rexy/cache/2223741128242393260.crp differ
diff --git a/maha/rexy/cache/2235578911988049647.crp b/maha/rexy/cache/2235578911988049647.crp
index 23738bd3..1666cdda 100644
Binary files a/maha/rexy/cache/2235578911988049647.crp and b/maha/rexy/cache/2235578911988049647.crp differ
diff --git a/maha/rexy/cache/2241792971554012862.crp b/maha/rexy/cache/2241792971554012862.crp
index 90d622e9..6968e32c 100644
Binary files a/maha/rexy/cache/2241792971554012862.crp and b/maha/rexy/cache/2241792971554012862.crp differ
diff --git a/maha/rexy/cache/2261190123109285056.crp b/maha/rexy/cache/2261190123109285056.crp
index 0e760dab..e1c1a56e 100644
Binary files a/maha/rexy/cache/2261190123109285056.crp and b/maha/rexy/cache/2261190123109285056.crp differ
diff --git a/maha/rexy/cache/265642085439995068.crp b/maha/rexy/cache/265642085439995068.crp
index 2a8f34e8..abeddf7f 100644
Binary files a/maha/rexy/cache/265642085439995068.crp and b/maha/rexy/cache/265642085439995068.crp differ
diff --git a/maha/rexy/cache/287652788147537764.crp b/maha/rexy/cache/287652788147537764.crp
index 607673f1..71293a68 100644
Binary files a/maha/rexy/cache/287652788147537764.crp and b/maha/rexy/cache/287652788147537764.crp differ
diff --git a/maha/rexy/cache/296498563684670697.crp b/maha/rexy/cache/296498563684670697.crp
index 30b5e5bf..dcb48a95 100644
Binary files a/maha/rexy/cache/296498563684670697.crp and b/maha/rexy/cache/296498563684670697.crp differ
diff --git a/maha/rexy/cache/379101283550393882.crp b/maha/rexy/cache/379101283550393882.crp
index ee1bbd4c..cf2636a4 100644
Binary files a/maha/rexy/cache/379101283550393882.crp and b/maha/rexy/cache/379101283550393882.crp differ
diff --git a/maha/rexy/cache/390358003655643784.crp b/maha/rexy/cache/390358003655643784.crp
index 9684736f..8df611b3 100644
Binary files a/maha/rexy/cache/390358003655643784.crp and b/maha/rexy/cache/390358003655643784.crp differ
diff --git a/maha/rexy/cache/396256851588519546.crp b/maha/rexy/cache/396256851588519546.crp
index add34991..4429a45e 100644
Binary files a/maha/rexy/cache/396256851588519546.crp and b/maha/rexy/cache/396256851588519546.crp differ
diff --git a/maha/rexy/cache/414232850294493380.crp b/maha/rexy/cache/414232850294493380.crp
index 8dfa20ef..425b6d32 100644
Binary files a/maha/rexy/cache/414232850294493380.crp and b/maha/rexy/cache/414232850294493380.crp differ
diff --git a/maha/rexy/cache/426756362040093933.crp b/maha/rexy/cache/426756362040093933.crp
index 15fb1aa0..2b55eddf 100644
Binary files a/maha/rexy/cache/426756362040093933.crp and b/maha/rexy/cache/426756362040093933.crp differ
diff --git a/maha/rexy/cache/458529415398829030.crp b/maha/rexy/cache/458529415398829030.crp
index 843777df..c8fd925d 100644
Binary files a/maha/rexy/cache/458529415398829030.crp and b/maha/rexy/cache/458529415398829030.crp differ
diff --git a/maha/rexy/cache/478524450493236968.crp b/maha/rexy/cache/478524450493236968.crp
index 911aa204..d0706f2b 100644
Binary files a/maha/rexy/cache/478524450493236968.crp and b/maha/rexy/cache/478524450493236968.crp differ
diff --git a/maha/rexy/cache/578776352037073199.crp b/maha/rexy/cache/578776352037073199.crp
index ec1c2f49..27ebaf49 100644
Binary files a/maha/rexy/cache/578776352037073199.crp and b/maha/rexy/cache/578776352037073199.crp differ
diff --git a/maha/rexy/cache/60806796812352904.crp b/maha/rexy/cache/60806796812352904.crp
index 03ae3705..51be6616 100644
Binary files a/maha/rexy/cache/60806796812352904.crp and b/maha/rexy/cache/60806796812352904.crp differ
diff --git a/maha/rexy/cache/621777640024157609.crp b/maha/rexy/cache/621777640024157609.crp
index 6b871e52..4b34e40f 100644
Binary files a/maha/rexy/cache/621777640024157609.crp and b/maha/rexy/cache/621777640024157609.crp differ
diff --git a/maha/rexy/cache/645311806165924971.crp b/maha/rexy/cache/645311806165924971.crp
index 3cb4b28c..08e5aa92 100644
Binary files a/maha/rexy/cache/645311806165924971.crp and b/maha/rexy/cache/645311806165924971.crp differ
diff --git a/maha/rexy/cache/702517378179019684.crp b/maha/rexy/cache/702517378179019684.crp
index 64f04d20..a4586d65 100644
Binary files a/maha/rexy/cache/702517378179019684.crp and b/maha/rexy/cache/702517378179019684.crp differ
diff --git a/maha/rexy/cache/739712668062611674.crp b/maha/rexy/cache/739712668062611674.crp
index 6a134d3b..ec3cce9f 100644
Binary files a/maha/rexy/cache/739712668062611674.crp and b/maha/rexy/cache/739712668062611674.crp differ
diff --git a/maha/rexy/cache/77881315212600933.crp b/maha/rexy/cache/77881315212600933.crp
index 606d5978..0985f8cd 100644
Binary files a/maha/rexy/cache/77881315212600933.crp and b/maha/rexy/cache/77881315212600933.crp differ
diff --git a/maha/rexy/cache/780025619311333761.crp b/maha/rexy/cache/780025619311333761.crp
index 1805e5b9..23e1e857 100644
Binary files a/maha/rexy/cache/780025619311333761.crp and b/maha/rexy/cache/780025619311333761.crp differ
diff --git a/maha/rexy/cache/800527118043824489.crp b/maha/rexy/cache/800527118043824489.crp
index 0ae3d3d8..f7127a94 100644
Binary files a/maha/rexy/cache/800527118043824489.crp and b/maha/rexy/cache/800527118043824489.crp differ
diff --git a/maha/rexy/cache/834721096717693491.crp b/maha/rexy/cache/834721096717693491.crp
index df78c0b7..72e4b393 100644
Binary files a/maha/rexy/cache/834721096717693491.crp and b/maha/rexy/cache/834721096717693491.crp differ
diff --git a/maha/rexy/cache/876178070856484984.crp b/maha/rexy/cache/876178070856484984.crp
index ef2c7f46..51a7c34c 100644
Binary files a/maha/rexy/cache/876178070856484984.crp and b/maha/rexy/cache/876178070856484984.crp differ
diff --git a/maha/rexy/cache/898756615206754822.crp b/maha/rexy/cache/898756615206754822.crp
index b737b052..a5b13198 100644
Binary files a/maha/rexy/cache/898756615206754822.crp and b/maha/rexy/cache/898756615206754822.crp differ
diff --git a/maha/rexy/cache/945598749424407451.crp b/maha/rexy/cache/945598749424407451.crp
index 600c34e6..2f587c30 100644
Binary files a/maha/rexy/cache/945598749424407451.crp and b/maha/rexy/cache/945598749424407451.crp differ
diff --git a/maha/rexy/cache/95953317035185517.crp b/maha/rexy/cache/95953317035185517.crp
index a4acabd1..5ef1d241 100644
Binary files a/maha/rexy/cache/95953317035185517.crp and b/maha/rexy/cache/95953317035185517.crp differ
diff --git a/maha/rexy/cache/961230404593317476.crp b/maha/rexy/cache/961230404593317476.crp
index d8d8b7f2..8b5a1040 100644
Binary files a/maha/rexy/cache/961230404593317476.crp and b/maha/rexy/cache/961230404593317476.crp differ
diff --git a/maha/rexy/cache/975458955367830824.crp b/maha/rexy/cache/975458955367830824.crp
index 356489fc..4ec74be5 100644
Binary files a/maha/rexy/cache/975458955367830824.crp and b/maha/rexy/cache/975458955367830824.crp differ
diff --git a/maha/rexy/cache/985516626535523056.crp b/maha/rexy/cache/985516626535523056.crp
index 04d10150..35aa201c 100644
Binary files a/maha/rexy/cache/985516626535523056.crp and b/maha/rexy/cache/985516626535523056.crp differ


Test patch:
diff --git a/tests/parsers/test_time.py b/tests/parsers/test_time.py
index 3ad1dd32..6a1f7cda 100644
--- a/tests/parsers/test_time.py
+++ b/tests/parsers/test_time.py
@@ -746,6 +746,28 @@ def test_last_specific_day_of_specific_month(expected, input):
     assert_expression_output(output, expected)
 
 
+@pytest.mark.parametrize(
+    "expected,input",
+    [
+        (
+            DATE.replace(day=11, month=10, hour=1),
+            "يوم الاثنين 11-10-2021 الساعه الواحدة ظهرا",
+        ),
+        (
+            DATE.replace(day=21, month=11, year=2010),
+            "يوم الأحد 21-11-2010 ",
+        ),
+        (
+            DATE.replace(day=28, month=11, year=2010),
+            "يوم الأحد 25-11-2010 ",
+        ),
+    ],
+)
+def test_full_date_with_specific_day(expected, input):
+    output = parse_dimension(input, time=True)
+    assert_expression_output(output, expected)
+
+
 @pytest.mark.parametrize(
     "input",
     [