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:

Tuesday 25th August 2026

الخميس القادم - 1787788800 - Thursday 27th August 2026

الأحد الماضي - 1787443200 - Sunday 23rd August 2026

بعد أسبوع و ثلاثة أيام - 1788515676 - Friday 04th September 2026

منذ تسعة أيام - 1786874076 - Sunday 16th August 2026

قبل إسبوعين - 1786442076 - Tuesday 11th August 2026

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