Arabic
[ class tree: Arabic ] [ index: Arabic ] [ all elements ]

Class: ArStrToTime

Source Location: /sub/ArStrToTime.class.php

Class Overview


This PHP class parse about any Arabic textual datetime description into a Unix timestamp


Author(s):

Copyright:

  • 2009 Khaled Al-Shamaa

Methods



Class Details

[line 89]
This PHP class parse about any Arabic textual datetime description into a Unix timestamp



Tags:

author:  Khaled Al-Shamaa <khaled.alshamaa@gmail.com>
copyright:  2009 Khaled Al-Shamaa
link:  http://www.ar-php.org
license:  LGPL


[ Top ]


Class Methods


static method strtotime [line 131]

static Integer strtotime( string $text, integer $now, [string $inputCharset = null], [object $main = null])

This method will parse about any Arabic textual datetime description into a Unix timestamp



Tags:

return:  Returns a timestamp on success, FALSE otherwise
author:  Khaled Al-Shamaa <khaled.alshamaa@gmail.com>
access:  public


Parameters:

string   $text   The string to parse, according to the GNU ยป Date Input Formats syntax (in Arabic).
integer   $now   The timestamp used to calculate the returned value.
string   $inputCharset   (optional) Input charset [utf-8|windows-1256|iso-8859-6] default value is NULL (use set input charset)
object   $main   Main Ar-PHP object to access charset converter options

[ Top ]


Documentation generated on Tue, 18 Aug 2009 00:12:51 +0300 by phpDocumentor 1.4.0