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:

Monday 10th November 2025

الخميس القادم - 1762992000 - Thursday 13th November 2025

الأحد الماضي - 1762646400 - Sunday 09th November 2025

بعد أسبوع و ثلاثة أيام - 1763631913 - Thursday 20th November 2025

منذ تسعة أيام - 1761990313 - Saturday 01st November 2025

قبل إسبوعين - 1761558313 - Monday 27th October 2025

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