Arabic StrToTime:

Parse about any Arabic textual datetime description into a Unix timestamp.

The function expects to be given a string containing an Arabic date format and will try to parse that format into a Unix timestamp (the number of seconds since January 1 1970 00:00:00 GMT), relative to the timestamp given in now, or the current time if none is supplied.


Example Output 1:

Saturday 15th March 2025

الخميس القادم - 1742428800 - Thursday 20th March 2025

الأحد الماضي - 1741478400 - Sunday 09th March 2025

بعد أسبوع و ثلاثة أيام - 1742880785 - Tuesday 25th March 2025

منذ تسعة أيام - 1741239185 - Thursday 06th March 2025

قبل إسبوعين - 1740807185 - Saturday 01st March 2025

2 آب 1975 - 176169600 - Saturday 02nd August 1975