RE: Date Time

2006-07-12 Thread Timothy Johnson
It looks like part of your message got munged by one of our mail clients, but here's a code snippet that should give you an idea of how you can proceed: ## use strict; use warnings; $| = 1; my $string = '200607081000@@01510'; #Check to make sure the regex matched, then proceed.

Re: Date Time

2006-07-12 Thread John W. Krahn
Semiyi.Abiola wrote: > Hi, Hello, > I got a file with this line: > > > 200607081000@@01510 > > It means Datetime@@Values > > I'm trying to insert this in Mysql with fields terminated by `@@`'; > > It's works fine but i got the wrong Datetime. > How kann i change 200607081000

Re: date & time from server problem/question

2006-05-17 Thread John W. Krahn
Graeme McLaren wrote: > Hi there, I decided that it would be a good idea to 'touch' the file > immediately after creating it and changing the modified date to the > current date, however its just not working for me. > > > change file permissions and 'touch' the file: > > system("chmod 777 "filep

Re: date & time from server problem/question

2006-05-17 Thread Graeme McLaren
nd Sub From: "Graeme McLaren" <[EMAIL PROTECTED]> To: [EMAIL PROTECTED] CC: beginners@perl.org Subject: Re: date & time from server problem/question Date: Wed, 17 May 2006 09:30:59 +0100 MIME-Version: 1.0 X-Originating-IP: [62.254.183.162] X-Originating-Email: [EM

Re: date & time from server problem/question

2006-05-17 Thread Graeme McLaren
or Resume drink If Pint.empty = True Then Pint.refill Else Pint.drink End if stomach.add Pint MsgBox " I've had " & stomach.count & " Pints" MsgBox "VERY DRUNK" End Sub From: "Tom Phoenix"

RE: date & time from server problem/question

2006-05-11 Thread Timothy Johnson
If the server is a Windows server you can use the Win32::FileTime module to get the info you need. -Original Message- From: Graeme McLaren [mailto:[EMAIL PROTECTED] Sent: Thursday, May 11, 2006 9:55 AM To: beginners@perl.org Subject: date & time from server problem/question Hi all, I

Re: date & time from server problem/question

2006-05-11 Thread Tom Phoenix
On 5/11/06, Graeme McLaren <[EMAIL PROTECTED]> wrote: Hi all, I'm trying to get the date & time a file was created on the server, I RTFM and I found: 10 ctimeinode change time (NOT creation time!) in seconds since the epoch It looks as if you've found the correct FM. There are three times

Re: date/time

2001-10-01 Thread Ricardo Derbes
I think that kind of job can be more easily managed by cron (on linux) or at (on winnt)... Regards Ricardo Derbes Altec SE AlbarracĂ­n 157 - San Carlos de Bariloche +54-2944-426892 [EMAIL PROTECTED] - Original Message - From: "Yacketta, Ronald" <[EMAIL PROTECTED]> To: "Beginners (E-mail)" <

Re: date/time

2001-10-01 Thread Daniel Gardner
YR> Looking for a little help for taking current time (from time) and finding YR> the time until 1 minute after midnight. YR> I have a daemon process (perl script) that needs to die ever new day, YR> the process should only run from 12:01 AM Today - l 12:01 AM Tomorrow as ever there's more tha

Re: date/time

2001-10-01 Thread eplowe
That sounds like a job for a crontab there, Ronald. ~Eric - Original Message - From: "Yacketta, Ronald" <[EMAIL PROTECTED]> To: "Beginners (E-mail)" <[EMAIL PROTECTED]> Sent: Monday, October 01, 2001 11:44 AM Subject: date/time > Folks, > > Looking for a little help for taking current

RE: date/time

2001-10-01 Thread Brett W. McCoy
On Mon, 1 Oct 2001, John Edwards wrote: > How about getting the program to write a little text file out containing the > time it was last started. Check this date from within the script and if the > date is yesterday and the time is > 12:01am then restart. > > How often does the script finish it'

RE: date/time

2001-10-01 Thread John Edwards
How about getting the program to write a little text file out containing the time it was last started. Check this date from within the script and if the date is yesterday and the time is > 12:01am then restart. How often does the script finish it's internal loop (I'm assuming it loops, does some