Translating DateTime class.

View: New views
2 Messages — Rating Filter:   Alert me  

Translating DateTime class.

by Jason Schoeman :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi every,

Is there a way to translate the DateTime
http://www.php.net/manual/en/class.datetime.php class to other
languages.

I used to use strftime but the DateTime class has functionality that I
need, I also use datetime::format to format my date and time.

I though of using the strftime instead of datetime::format but their
are multiple complications.

Any help would be appreciated!

--
PHP Unicode & I18N Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


Re: Translating DateTime class.

by Ed Batutis :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

On Thu, Feb 26, 2009 at 2:30 AM, Jason Schoeman
<jason.schoeman@...> wrote:
> Hi every,
>
> Is there a way to translate the DateTime
> http://www.php.net/manual/en/class.datetime.php class to other
> languages.
>

You don't say precisely what you need and you don't say what version
of php you are using. But I would recommend that you look into using
ICU.

http://site.icu-project.org/

=Ed

--
PHP Unicode & I18N Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php