Re: Shell qw(mysqldump) and localtime.

2007-09-03 Thread Shams Fantar
Adriano Ferreira wrote: On 9/3/07, Shams Fantar <[EMAIL PROTECTED]> wrote: Hello, I want to give a date (the year, the day, the hour and the minute) to a file. So, I use localtime function. But I don't understand how to use localtime (after reading the documentation on this function). Can yo

Re: Shell qw(mysqldump) and localtime.

2007-09-03 Thread Adriano Ferreira
On 9/3/07, Shams Fantar <[EMAIL PROTECTED]> wrote: > Hello, > > I want to give a date (the year, the day, the hour and the minute) to a > file. So, I use localtime function. But I don't understand how to use > localtime (after reading the documentation on this function). Can you > help me with this

Re: Shell qw(mysqldump) and localtime.

2007-09-03 Thread Shams Fantar
Jeff Pang wrote: 2007/9/3, Shams Fantar <[EMAIL PROTECTED]>: Jeff Pang wrote: try the POSIX::strftime,this use the same datetime format as shell's date command. perl -e ' use POSIX qw/strftime/; print strftime("%y%m%d %H:%M",localtime); ' 070903 21:51 Okay. All right. use PO

Re: Shell qw(mysqldump) and localtime.

2007-09-03 Thread Jeff Pang
2007/9/3, Shams Fantar <[EMAIL PROTECTED]>: > Jeff Pang wrote: > > try the POSIX::strftime,this use the same datetime format as shell's > > date command. > > > > perl -e ' > > use POSIX qw/strftime/; > > print strftime("%y%m%d %H:%M",localtime); ' > > > > 070903 21:51 > > > > Okay. All right. > > u

Re: Shell qw(mysqldump) and localtime.

2007-09-03 Thread Shams Fantar
Jeff Pang wrote: try the POSIX::strftime,this use the same datetime format as shell's date command. perl -e ' use POSIX qw/strftime/; print strftime("%y%m%d %H:%M",localtime); ' 070903 21:51 Okay. All right. use POSIX qw(strftime); my $date1 = strftime("%y/%m/%d %H:%M",localtime); my $FIL

Re: Shell qw(mysqldump) and localtime.

2007-09-03 Thread Jeff Pang
try the POSIX::strftime,this use the same datetime format as shell's date command. perl -e ' use POSIX qw/strftime/; print strftime("%y%m%d %H:%M",localtime); ' 070903 21:51 2007/9/3, Shams Fantar <[EMAIL PROTECTED]>: > Hello, > > I want to give a date (the year, the day, the hour and the minute

Shell qw(mysqldump) and localtime.

2007-09-03 Thread Shams Fantar
Hello, I want to give a date (the year, the day, the hour and the minute) to a file. So, I use localtime function. But I don't understand how to use localtime (after reading the documentation on this function). Can you help me with this function? Next, I want to use a shell command, so I use