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 20th April 2026

الخميس القادم - 1776902400 - Thursday 23rd April 2026

الأحد الماضي - 1776556800 - Sunday 19th April 2026

بعد أسبوع و ثلاثة أيام - 1777513737 - Thursday 30th April 2026

منذ تسعة أيام - 1775872137 - Saturday 11th April 2026

قبل إسبوعين - 1775440137 - Monday 06th April 2026

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