[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [cobalt-users] Date Settings
- Subject: Re: [cobalt-users] Date Settings
- From: Marco Baurdoux <linux@xxxxxxxxxxxxx>
- Date: Mon Aug 13 16:49:03 2001
- List-id: Mailing list for users to share thoughts on Cobalt products. <cobalt-users.list.cobalt.com>
Hi phillip,
You can set the format you wish by using
date +FORMAT MMDDhhmm CC YY ss
but for more info check out the man page of date.
But since you use PHP to insert stuff into a database why not use PHP to get
the correct date format. You can even make PHP put the names of days and the
month in your own language ( Oups you already have the language you want
:-))
You might want to take a look at the following functions:
<?
//Prints something like
//03:59 PM Monday January 1st, 2001
print(date(+h:i A l F dS, Y"));
?>
Otherwise make use of these nice locale on your Cobalt machine with the
following bit of Code:
<?
setlocale(LC_TIME, en_UK);
print(strftime("%c"));
?>
However no need to wait in a queue to purchase a ticket in order to visit
the http://www.php.net website :-)).
le 13.8.2001 22:35, Philip Radford à philip@xxxxxxxxxxxxxxxxxxxx a écrit :
> Hi All,
>
> Being pretty new to Cobalt RaQ systems and UNIX in general, I was wondering if
> anyone knew if it is possible to change the system date on the Cobalt RaQ 4 to
> a UK format. It appears in american currently i.e. MM/DD/YYYY. This is a
> potential problem for database access with PHP which makes use of the data
> datatype.
>
> Regards
> Philip Radford
>
> _______________________________________________
> cobalt-users mailing list
> cobalt-users@xxxxxxxxxxxxxxx
> To Subscribe or Unsubscribe, please go to:
> http://list.cobalt.com/mailman/listinfo/cobalt-users
=======================================================================
Marco Baurdoux
Unix Administrator
Infomaniak Network SA
Avenue de la Praille 26
1227 Carouge
Switzerland
Tel: +41 (0)22 820 35 41
Fax: +41 (0)22 820 35 46
http://web.infomaniak.ch
=======================================================================