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 21st October 2025

الخميس القادم - 1761177600 - Thursday 23rd October 2025

الأحد الماضي - 1760832000 - Sunday 19th October 2025

بعد أسبوع و ثلاثة أيام - 1761892227 - Friday 31st October 2025

منذ تسعة أيام - 1760250627 - Sunday 12th October 2025

قبل إسبوعين - 1759818627 - Tuesday 07th October 2025

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