Re: How create a date+time type of vbs in perl?

2011-04-18 Thread Bill Luebkert
eserial(6, 0, 0) > > any reply is really appreciated. Windows has more than one time format, so it could get complicated if you plan on doing anything wild with it. file time is a dbl-word (64 bit) in 100-nanosecond intvls since Jan 1, 1601 system time is array of (YR

RE: How create a date+time type of vbs in perl?

2011-04-18 Thread Eric Robertson
Hi Have you tried Date::Calc module, which I use for all my date and time calculations? It's pretty comprehensive. Eric Robertson _ From: activeperl-boun...@listserv.activestate.com [mailto:activeperl-boun...@listserv.activestate.com] On Behalf Of Xiao Yafeng Sen

How create a date+time type of vbs in perl?

2011-04-18 Thread Xiao Yafeng
Hi, Is there a way to create a date type of vbs in perl? for example, how can I translate below vbs statement into perlish one? date_from = DateSerial(2011,03, 23) + timeserial(6, 0, 0) any reply is really appreciated. _

Re: How create a time object of VBS in perl?

2010-09-19 Thread Xiao Yafeng
I've used vbconverter to translate now function into perl: package VBS; use strict; use Win32::OLE::NLS qw(:TIME :DATE GetLocaleInfo GetUserDefaultLCID LOCALE_SMONTHNAME1 LOCALE_SABBREVMONTHNAME1 LOCALE_SDAYNAME1 LOCALE_SABBREVDAY

Re: How create a time object of VBS in perl?

2010-09-19 Thread John Mason Jr
On 9/19/2010 7:48 AM, Ludwig, Michael wrote: >> Could you tell me how create a time object of VBS in perl? Below >> statement define a starting time and pass it to the getdata function >> to get data in VBS: >> >> start_time = DateSerial( 2003, 01, 31) + Time

RE: How create a time object of VBS in perl?

2010-09-19 Thread Ludwig, Michael
>Could you tell me how create a time object of VBS in perl? Below > statement define a starting time and pass it to the getdata function > to get data in VBS: > > start_time = DateSerial( 2003, 01, 31) + TimeSerial( 6, 0, 0) > data_array = lpd.getdata(id, start_time) > &

Re: How create a time object of VBS in perl?

2010-09-19 Thread Bill Luebkert
On 9/18/2010 11:39 PM, Xiao Yafeng wrote: > > start_time = DateSerial( 2003, 01, 31) + TimeSerial( 6, 0, 0) > data_array = lpd.getdata(id, start_time) I think VB uses a different time format than most Windoze system times. See if these help: http://msdn.microsoft.com/en-us/library/3ea

How create a time object of VBS in perl?

2010-09-18 Thread Xiao Yafeng
Hi, Could you tell me how create a time object of VBS in perl? Below statement define a starting time and pass it to the getdata function to get data in VBS: start_time = DateSerial( 2003, 01, 31) + TimeSerial( 6, 0, 0) data_array = lpd.getdata(id, start_time) But I don't know h

RE: Date math with UTC Coded Time

2009-02-04 Thread Ken Cornetet
I think maybe this is what you want... Use Math::BigInt; # Convert Microsoft's FILETIME variant into standard Epoch time

RE: Date math with UTC Coded Time

2009-02-04 Thread Deans, Glenn (IT Solutions US)
de like below, I get what looks like a reference to a scalar, but the dereferenced variable doesn't have anything that I would call useful. OLE & references are definitely my weak point, but I just don't know how to get anything that I could feed to Date::Time, Date::Calc, Time::Loca

Re: Date math with UTC Coded Time

2009-02-03 Thread Bill Luebkert
Deans, Glenn (IT Solutions US) wrote: > Can anyone give me some direction for handling the UTC Coded time? I > think I'm just missing something obvious, but I just can't get this into > a useable format for doing any kind of date math. I know nothing of ADO, but given an epoch

Re: Date math with UTC Coded Time

2009-02-03 Thread Lyle
DateTime.pm Deans, Glenn (IT Solutions US) wrote: > Can anyone give me some direction for handling the UTC Coded time? I > think I'm just missing something obvious, but I just can't get this into > a useable format for doing any kind of date math. > > ...

RE: Date math with UTC Coded Time

2009-02-03 Thread Deans, Glenn (IT Solutions US)
Can anyone give me some direction for handling the UTC Coded time? I think I'm just missing something obvious, but I just can't get this into a useable format for doing any kind of date math. Kind regards Glenn Deans Architect Siemens IT Sol

Date math with UTC Coded Time

2009-01-27 Thread Deans, Glenn (IT Solutions US)
tes from last year come out as 1/9/2009 2:22:05 AM. I'm not sure what I'm doing wrong, but maybe someone could point it out to me? Then once that is corrected, how can you easily tell if it's > 90 days since it doesn't seem to be an epoch time? .

RE: Date-time module that goes beyond 2023

2008-12-04 Thread Henry Hartley
Justin Allegakoen wrote: >> 2008/12/4 Foo JH <[EMAIL PROTECTED]> >> > The recent discussion on a date-time module leaves me wondering: >> > Given that time() only works up to year 2023, is there a successor >> > module which can go beyond 2023, and earlie

Re: Date-time module that goes beyond 2023

2008-12-04 Thread Justin Allegakoen
2008/12/4 Foo JH <[EMAIL PROTECTED]> > Hi all, > > The recent discussion on a date-time module leaves me wondering: > > Given that time() only works up to year 2023, is there a successor > module which can go beyond 2023, and earlier than 1900? > > What will be t

Date-time module that goes beyond 2023

2008-12-04 Thread Foo JH
Hi all, The recent discussion on a date-time module leaves me wondering: Given that time() only works up to year 2023, is there a successor module which can go beyond 2023, and earlier than 1900? What will be the code implication to support this new module

Re: UTC time conversion to local time

2008-08-14 Thread Bill Luebkert
Bilashi Sahu wrote: > Hi, > I am trying to convert UTC (In seconds) time to local Time. > I will appreciate if anybody has some hints to do this. > I have code like this, it does not work properly > Here cds_date is in UTC seconds and $cmpn_date is in local time > Just compar

Re: UTC time conversion to local time

2008-08-14 Thread Michael Ellery
use DateTime; use DateTime::Format::HTTP; ??? -Mike Bilashi Sahu wrote: > Hi, > I am trying to convert UTC (In seconds) time to local Time. > I will appreciate if anybody has some hints to do this. > I have code like this, it does not work properly > Here cds_date is in

UTC time conversion to local time

2008-08-14 Thread Bilashi Sahu
Hi, I am trying to convert UTC (In seconds) time to local Time. I will appreciate if anybody has some hints to do this. I have code like this, it does not work properly Here cds_date is in UTC seconds and $cmpn_date is in local time Just comparing if both of the same Thanks, Bilashi #check

Perl and Daylight Saving Time on Windows

2007-03-05 Thread Jan Dubois
Prompted by a bug report regarding the new DST rules I had a closer look how localtime() determines Daylight Saving Time on Windows. This information is not really specific to Perl but applies to all Windows applications that use either the MSVCRT runtime library, or the Win32 API to determine DST

Re: File creation time?

2006-12-08 Thread Anthony R. Nemmer
I've always wondered why Unix doesn't have a file creation time... $Bill Luebkert wrote: > Brian Raven wrote: > >> That seems like quite a good description, without getting into the >> implementation details of a *nix file system. Can you cite the source >> fo

Re: File creation time?

2006-12-08 Thread $Bill Luebkert
Brian Raven wrote: > That seems like quite a good description, without getting into the > implementation details of a *nix file system. Can you cite the source > for your quote, or would you have to kill all of the list subscribers > :-) ? Google is my friend: http://www.delorie.com/gnu/docs/text

RE: File creation time?

2006-12-08 Thread Brian Raven
$Bill Luebkert <> wrote: > [EMAIL PROTECTED] wrote: > >> >> Gurus, >> >> Is there any way to get the creation time of a file? I looked at -C >> and the ctime returned by a stat() call, but those both give the >> file's "inode change t

Re: File creation time?

2006-12-07 Thread $Bill Luebkert
[EMAIL PROTECTED] wrote: > > Gurus, > > Is there any way to get the creation time of a file? I looked at -C and > the ctime returned by a stat() call, but those both give the file's > "inode change time," whatever that means. Second question: what *does* &

File creation time?

2006-12-07 Thread Deane . Rothenmaier
Gurus, Is there any way to get the creation time of a file? I looked at -C and the ctime returned by a stat() call, but those both give the file's "inode change time," whatever that means. Second question: what *does* that mean? The camel doesn't say. TIA Deane

RE: Epoch Time vs. DST/CST

2006-11-14 Thread Roode, Eric
Time vs. DST/CST Gurus, I'm not sure if this is the right forum for this, but, nothing ventured, etc. I've got a little question that's come up here at work: is Epoch Time (epoch seconds) affected by the spring and autumn DST changes? TIA, De

Epoch Time vs. DST/CST

2006-11-14 Thread Deane . Rothenmaier
Gurus, I'm not sure if this is the right forum for this, but, nothing ventured, etc. I've got a little question that's come up here at work: is Epoch Time (epoch seconds) affected by the spring and autumn DST changes? TIA, Deane Rothenmaier Systems Architect Walgreens Corp. 847-9

Re: How to find which part of the code is taking much time inexecution ina big perl file

2006-09-28 Thread bwhicks
[EMAIL PROTECTED] wrote on 09/28/2006 08:41:39 AM: > I have used benchmark module that comes with > ActiveStates perl interpreter.It gives the time > required to execute for a module. > I feel that will be of great use to you. > > Apart from that you can use the function

RE: How to find which part of the code is taking much time in executionin a big perl file

2006-09-28 Thread Roode, Eric
ly do anything to help you track down what parts of your program are taking all the time. That's "profiling". If your code is reasonably modular, you should use the Devel::DProf module. Even if it isn't, that's a good place to start. You run your program as: perl

Re: How to find which part of the code is taking much time in execution in a big perl file

2006-09-28 Thread raj khosla
Rishi, I have used benchmark module that comes with ActiveStates perl interpreter.It gives the time required to execute for a module. I feel that will be of great use to you. The functions are easy to use and help provided for the same is very good. The module is basically for performance

Re: How to find which part of the code is taking much time in execution in a big perl file

2006-09-27 Thread Deane . Rothenmaier
            Subject:        How to find which part of the code is taking much time in execution        in a big perl file HI,   I am in urgent need of optimising the a perl script which is able to handle to 1000 request in one min and the requirement is to handle 5000 requests in one minute.  

RE: How to find which part of the code is taking much time in executionin a big perl file

2006-09-27 Thread Gerber, Christopher J
> I am in urgent need of optimising the a perl script which is able to handle > to 1000 request in one min and the requirement is to handle 5000 requests > in one minute. There is a module called "Benchmark", which I believe is included in ActiveState Perl. From a command prompt type "perldo

RE: How to find which part of the code is taking much time in executionin a big perl file

2006-09-27 Thread Thurn, Martin
To: activeperl@listserv.ActiveState.com Subject: How to find which part of the code is taking much time in executionin a big perl file HI, I am in urgent need of optimising the a perl script which is able to handle to 1000 request in one min and the requirement is to handle 5000 requests in one

RE: How to find which part of the code is taking much time in exe cution in a big perl file

2006-09-27 Thread william . hoopes
ppm search benchmark       From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of [EMAIL PROTECTED] Sent: Wednesday, September 27, 2006 8:14 AM To: activeperl@listserv.ActiveState.com Subject: How to find which part of the code is taking much time in execution in a big

How to find which part of the code is taking much time in execution in a big perl file

2006-09-27 Thread srivastava.rishi
time, or any idea how should I start on this issue.   Any help/idea is welcome.   Thanks Rishi The information contained in this electronic message and any attachments to this message are intended for the exclusive use of the addressee(s) and may contain proprietary, confidential or

Re: Find time it takes to run a command

2006-07-06 Thread $Bill Luebkert
ow the command takes? I want to cancel the command if it takes over > a certain amount of time. Forgot to mention that using backticks will cause the program to wait for the command to finish, so either use Win32::Job as suggested or Win32::Process::Create to start the command in the

Re: Find time it takes to run a command

2006-07-06 Thread $Bill Luebkert
ow the command takes? I want to cancel the command if it takes over > a certain amount of time. The Win32LLJob module seems to do what you want as previously mentioned. You can also time it yourself using use Time::HiRes or Win32::GetTickCount. EG: use strict; use warnings; use Time::HiRes

Re: Find time it takes to run a command

2006-07-06 Thread Mark Gardner
Wong, Danny H. wrote at 7/6/2006 6:22 PM: >The problem is the command might get stuck and I'm waiting hours for the >command to finish which prevents other process to backlog as well. How >can I determine, say if the command doesn't finished within 20 >minutes, cancel the command and report the e

RE: Find time it takes to run a command

2006-07-06 Thread Wong, Danny H.
k too long. -Original Message- From: Christopher Hahn [mailto:[EMAIL PROTECTED] Sent: Thursday, July 06, 2006 2:23 PM To: Wong, Danny H.; activeperl@listserv.activestate.com Subject: RE: Find time it takes to run a command Just save the time() before and after and then turn the difference from

RE: Find time it takes to run a command

2006-07-06 Thread Daniel Rychlik
@listserv.activestate.com Subject: Find time it takes to run a command Hi Perl GURUS, Is there a module or a way to find out how long a command takes to finish? Example: my output = `do sync $Project 2>&1`; The program might hang for over 20 minutes. Is there a easy way to find

Find time it takes to run a command

2006-07-06 Thread Wong, Danny H.
es over a certain amount of time. Thanks! - - - - - Appended by Scientific Atlanta, a Cisco company - - - - - This e-mail and any attachments may contain information which is confidential, proprietary, privileged or otherwise protected by law. The information is solely intended for th

RE: Real time data plotting using TCL/Tk

2006-05-26 Thread Brian Raven
Biplab Roy <> wrote: > Hi All, > > > > I need a help to plot a graph using Tk in real time, assume we are > generating the values continuously in a loop, the graph needs to be > plotted with those values in real time. I have taken two approaches > but it able to

Real time data plotting using TCL/Tk

2006-05-26 Thread Biplab Roy
Hi All, I need a help to plot a graph using Tk in real time, assume we are generating the values continuously in a loop, the graph needs to be plotted with those values in real time. I have taken two approaches but it able to make it out: 1. Common Variable Method 1. First you can

RE: No-brainer, pressed for time

2006-05-22 Thread Brian Raven
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of [EMAIL PROTECTED] Sent: 19 May 2006 17:11 To: Wayne Simmons Cc: activeperl@listserv.ActiveState.com Subject: RE: No-brainer, pressed for time > Wayne, > > I overstated the simplicity. Each list is divided into parts, viz.

Re: No-brainer, pressed for time

2006-05-19 Thread Eric Amick
> @list1 = qw( artist awful billy blunder) > @list2 = qw( attitude blatherskite) > > # something magical happens, and the contents of @list1 are now > # 'artist', 'attitude', 'awful', 'billy', 'blatherskite', 'blunder' @list1 = sort @list1, @list2; -- Eric Amick Columbia, MD __

Re: No-brainer, pressed for time

2006-05-19 Thread Basil Daoust
> >     @list1 = qw( artist awful billy blunder) >     @list2 = qw( attitude blatherskite) > >     # something magical happens, and the contents of @list1 are now >     # 'artist', 'attitude', 'awful', 'billy', 'blatherskite', 'blunder' > > If the lists aren't too large, here's what I'd do: >

RE: No-brainer, pressed for time

2006-05-19 Thread Charles K. Clarkson
[EMAIL PROTECTED] wrote: : Wizards, : : I know this is a no-brainer, but like I said... : : I'm sure there's something somewhere that will handle merging : a sorted list of text into a larger sorted list of text, I'm : just having a case of the lazy-thumbs today. Anybody care to : point me in the

RE: No-brainer, pressed for time

2006-05-19 Thread Hicks, Robert
> @list1 = qw( artist awful billy blunder) > @list2 = qw( attitude blatherskite) > > # something magical happens, and the contents of @list1 are now > # 'artist', 'attitude', 'awful', 'billy', 'blatherskite', 'blunder' @list1 = qw[ artist awful billy blunder ]; @list2 = qw[ attitude blatherski

Re: No-brainer, pressed for time

2006-05-19 Thread David Totten
@list1 = sort(@list1,@list2) seems to do what you want to do. On 5/19/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: Wizards, I know this is a no-brainer, but like I said... I'm sure there's something somewhere that will handle merging a sorted list of text into a larger sorted list of text

RE: No-brainer, pressed for time

2006-05-19 Thread Brian Raven
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of [EMAIL PROTECTED] Sent: 19 May 2006 16:10 To: activeperl@listserv.ActiveState.com Subject: No-brainer, pressed for time > Wizards, > > I know this is a no-brainer, but like I said... > > I'm sure there's

RE: No-brainer, pressed for time

2006-05-19 Thread Deane . Rothenmaier
ot;'[EMAIL PROTECTED]'" <[EMAIL PROTECTED]>         cc:                 Subject:        RE: No-brainer, pressed for time @list1 = qw( artist awful billy blunder) @list2 = qw( attitude blatherskite) # something magical happens, and the contents of @list1 are now # &

Re: No-brainer, pressed for time

2006-05-19 Thread Eric Hanchrow
@list1 = qw( artist awful billy blunder) @list2 = qw( attitude blatherskite) # something magical happens, and the contents of @list1 are now # 'artist', 'attitude', 'awful', 'billy', 'blatherskite', 'blunder' If the lists aren't too large, here's what I'd do: @list1 = (@list1, @

RE: No-brainer, pressed for time

2006-05-19 Thread Bowie Bailey
[EMAIL PROTECTED] wrote: > Wizards, > > I know this is a no-brainer, but like I said... > > I'm sure there's something somewhere that will handle merging a > sorted list of text into a larger sorted list of text, I'm just > having a case of the lazy-thumbs today. Anybody care to point me in > the

Re: No-brainer, pressed for time

2006-05-19 Thread Michael Goldshteyn
Magic: @list1=sort (@list1,@list2); <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] Wizards, I know this is a no-brainer, but like I said... I'm sure there's something somewhere that will handle merging a sorted list of text into a larger sorted list of text, I'm just having a ca

No-brainer, pressed for time

2006-05-19 Thread Deane . Rothenmaier
Wizards, I know this is a no-brainer, but like I said... I'm sure there's something somewhere that will handle merging a sorted list of text into a larger sorted list of text, I'm just having a case of the lazy-thumbs today. Anybody care to point me in the right direction?  Here's what I'm tryi

Re: Time::HiRes on XP (Win32)

2006-05-04 Thread Petr Vileta
Zoly wrote: Hi Folks, In my short primitive code I used 'Time::HiRes' that worked for me pretty good on my old P4-2.4GHz machine with XP-pro for long. Sample: (Line 3)-> use Time::HiRes qw(usleep ualarm gettimeofday tv_interval); I had to replace my PC and the platform now is

RE: Time::HiRes on XP (Win32)

2006-05-04 Thread Jan Dubois
there is a problem, my code exits with this error > > message below. Time::HiRes::ualarm(): unimplemented in this > > platform at > > C:\Perl\time.pl line 3 > > Hi there, > > Most likely its the fact the code for that module was built for a > older type of syste

Re: Re: Time::HiRes on XP (Win32)

2006-05-04 Thread Zoly
Zoly wrote: Hi Folks, In my short primitive code I used 'Time::HiRes' that worked for me pretty good on my old P4-2.4GHz machine with XP-pro for long. Sample: (Line 3)-> use Time::HiRes qw(usleep ualarm gettimeofday tv_interval); I had to replace my PC and the platform now is a &

Re: Time::HiRes on XP (Win32)

2006-05-04 Thread pmalcher
Quoting Zoly <[EMAIL PROTECTED]>: I had to replace my PC and the platform now is a 'AMD-Athlon 64 X2 Dual Core 3800+' that made my applications "flying" compared to the earlier one, but there is a problem, my code exits with this error message below.

RE: Time::HiRes on XP (Win32)

2006-05-04 Thread Jan Dubois
Zoly wrote: > > Hi Folks, > > In my short primitive code I used 'Time::HiRes' that worked for me > pretty good on my old P4-2.4GHz machine with XP-pro for long. Sample: > (Line 3)-> use Time::HiRes qw(usleep ualarm gettimeofday > tv_interval); > > I had

Time::HiRes on XP (Win32)

2006-05-04 Thread Zoly
Hi Folks,In my short primitive code I used 'Time::HiRes' that worked for me pretty good on my old P4-2.4GHz machine with XP-pro for long.Sample:(Line 3)-> use Time::HiRes qw(usleep ualarm gettimeofday tv_interval);I had to replace my PC and the platform now is a 'AMD

Re: first time using LWP

2006-04-09 Thread Foo Ji-Haw
Have you tried the LWP module documentation? The following is a clip from the 'An Example' section use LWP::UserAgent; $ua = LWP::UserAgent->new; $ua->agent("MyApp/0.1 "); # Create a request my $req = HTTP::Request->new(POST => 'http://search.cpan.org/search'); $req->content_type('applicat

Re: first time using LWP

2006-04-08 Thread Petr Vileta
- Original Message - From: "Charles K. Clarkson" <[EMAIL PROTECTED]> To: Sent: Saturday, April 08, 2006 5:49 PM Subject: RE: first time using LWP Petr Vileta wrote: Petr, that's a great example. Thanks for contributing. I have a couple style questions. :

RE: first time using LWP

2006-04-08 Thread Charles K. Clarkson
Petr Vileta wrote: Petr, that's a great example. Thanks for contributing. I have a couple style questions. : #!/usr/bin/perl : use strict; : use LWP::UserAgent; : require HTTP::Headers; Why "use" LWP::UserAgent and "require" HTTP::Headers? Why not require or use both? How do you decide w

Re: first time using LWP

2006-04-07 Thread $Bill Luebkert
Gerald Preston wrote: > Hi! > > > > Not sure where to begin, although I have been reading every thing I can > find, but I am looking for a few good examples that use LWP to read web > pages from a Perl script that runs from WIN XP DOS command line. There's a pod in the same dir as the module

Re: first time using LWP

2006-04-07 Thread Petr Vileta
- Original Message - From: "Gerald Preston" <[EMAIL PROTECTED]> To: Sent: Friday, April 07, 2006 11:18 PM Subject: first time using LWP Hi! Not sure where to begin, although I have been reading every thing I can find, but I am looking for a few good examples that

first time using LWP

2006-04-07 Thread Gerald Preston
Hi!   Not sure where to begin, although I have been reading every thing I can find, but I am looking for a few good examples that use LWP to read web pages from a Perl script that runs from WIN XP DOS command line.    Any suggestion?   Thanks,   Jerry

Pre-Dating Files Inode Modification time - howto?

2006-04-05 Thread Arijit Das
There are three type of times usually associated with a file. 1) Last File modification time 2) Last File access time 3) Last Inode Modification time.   It seems like the first two times can be pre-dated by using the touch command.   ## pre-Dating to 31-Jan-2006 touch -c -t 01311200.00

RE: Time in miliseconds

2006-03-08 Thread itrabado
Thanx, guys you're great!!! Ignacio Trabado Castillo Dpto. Informática Desarrollo tlf: 93 500 (9255)___ ActivePerl mailing list ActivePerl@listserv.ActiveState.com To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs

Re: Time in miliseconds

2006-03-08 Thread Petr Vileta
[EMAIL PROTECTED] wrote: How can i get the time down to miliseconds with perl? I have a logfile, with various inputs per second, so i'd like to be able to see how many miliseconds between them. Any sugestions? Time::HiRes module is what you looking for ;-) Petr Vileta, Czech republi

RE: Time in miliseconds

2006-03-08 Thread Brian Raven
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of [EMAIL PROTECTED] Sent: 08 March 2006 08:03 To: ActivePerl@listserv.ActiveState.com Subject: Time in miliseconds > How can i get the time down to miliseconds with perl? I have a logfile, with various inputs per second, so i'

Re: Time in miliseconds

2006-03-08 Thread $Bill Luebkert
[EMAIL PROTECTED] wrote: > > How can i get the time down to miliseconds with perl? I have a logfile, > with various inputs per second, so i'd like to be able to see how many > miliseconds between them. > > Any sugestions? If you just want time to msecs, try Time::HiRe

Re: Time in miliseconds

2006-03-08 Thread Foo Ji-Haw
Have you tried Time::Hires? [EMAIL PROTECTED] wrote: How can i get the time down to miliseconds with perl? I have a logfile, with various inputs per second, so i'd like to be able to see how many miliseconds between them. Any sugestions? Thanx Ignacio Trabado Castillo Dpto. Inform

Time in miliseconds

2006-03-08 Thread itrabado
How can i get the time down to miliseconds with perl? I have a logfile, with various inputs per second, so i'd like to be able to see how many miliseconds between them. Any sugestions? Thanx Ignacio Trabado Castillo Dpto. Informática Desarrollo tlf: 93 500

RE: Invoking perl scripts automatically based on time of day

2005-12-15 Thread Mittal, Manish
Cc: activeperl@listserv.ActiveState.com Subject: RE: Invoking perl scripts automatically based on time of day Hi Manish, for clarification, Perl script along with Perl is a aplication - not a service which is always running. There must be something else that will wake and trick the script going

RE: Invoking perl scripts automatically based on time of day

2005-12-15 Thread Ari.Wilen
@listserv.ActiveState.com Subject: Re: Invoking perl scripts automatically based on time of day On 14/12/05, Mittal, Manish <[EMAIL PROTECTED]> wrote: > > Hi Perl gurus, > > Is there a way in Perl to invoke a set of Database related perl > scripts at certain t

Re: Invoking perl scripts automatically based on time of day

2005-12-14 Thread Lawrence Q. Pulaski
Winders has "at" that'll do it. Larry On Wed, 14 Dec 2005, pDale wrote: On 12/14/05, Mittal, Manish <[EMAIL PROTECTED]> wrote: Is there a way in Perl to invoke a set of Database related perl scripts at certain times of day regularly? Unix/Linux has "cron". Windows has "Task Sc

Re: Best ways to find time/date differences

2005-12-14 Thread $Bill Luebkert
27;m not sure how i got the wrong idea but i'm glad > I now know the correct definition. I think we're confusing the time format with the time value. UTC is basically the same as the epoch time (from 'time' function call). You can format the UTC/GMT/epoch time in any numbe

Re: Invoking perl scripts automatically based on time of day

2005-12-14 Thread pDale
On 12/14/05, Mittal, Manish <[EMAIL PROTECTED]> wrote: > > Is there a way in Perl to invoke a set of Database related perl > scripts at certain times of day regularly? Unix/Linux has "cron". Windows has "Task Scheduleder". -- pDale Campbell "All of the birds are laughing! C'mon, let

Re: Invoking perl scripts automatically based on time of day

2005-12-14 Thread Anthony R. Nemmer
cron !? =) Hmm, looks like cygwin has a /usr/sbin/cron.exe Tony Mittal, Manish wrote: Hi Perl gurus, Is there a way in Perl to invoke a set of Database related perl scripts at certain times of day regularly? Could any one direct me to locate a good resource or provi

Re: Invoking perl scripts automatically based on time of day

2005-12-14 Thread kjw
On 14/12/05, Mittal, Manish <[EMAIL PROTECTED]> wrote: > > Hi Perl gurus, > > Is there a way in Perl to invoke a set of Database related perl > scripts at certain times of day regularly? > > Could any one direct me to locate a good resource or provide a > snippet of code for

Invoking perl scripts automatically based on time of day

2005-12-14 Thread Mittal, Manish
Hi Perl gurus,     Is there a way in Perl to invoke a set of Database related perl scripts at certain times of day regularly?     Could any one direct me to locate a good resource or provide a snippet of code for the above?   Thank you Manish  

Re: Best ways to find time/date differences

2005-12-14 Thread JPerlmutter
> Date: Tue, 13 Dec 2005 12:16:37 -0800 (PST) > From: [EMAIL PROTECTED] > Subject: Re: Best ways to find time/date differences > To: activeperl@listserv.ActiveState.com > Message-ID: <[EMAIL PROTECTED]> > Content-Type: text/plain;charset=iso-8859-1 > > > [EMAI

RE: Best ways to find time/date differences

2005-12-13 Thread Mittal, Manish
Thanks for all the info... very useful. Manish -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of $Bill Luebkert Sent: Tuesday, December 13, 2005 3:55 PM To: activeperl@listserv.ActiveState.com Subject: Re: Best ways to find time/date differences [EMAIL

Re: Best ways to find time/date differences

2005-12-13 Thread $Bill Luebkert
[EMAIL PROTECTED] wrote: >>>UTC simply means you have a + or - in \d\d\d\d where the first two are >>>hours and the second two minutes format in relation to GMT (UTC +); >> >>That's just a way of 'formatting' or 'representing' the UTC

Re: Best ways to find time/date differences

2005-12-13 Thread wix
> [EMAIL PROTECTED] wrote: > >> Bill- >> >> >> UTC (Universal Time Code) means something like what you get from >> localtime(), but with a " -0500" or " +0500" following > > UTC actually means 'Universal Time Coordinated&

Re: Best ways to find time/date differences

2005-12-13 Thread $Bill Luebkert
[EMAIL PROTECTED] wrote: > Bill- > > > UTC (Universal Time Code) means something like what you get from > localtime(), but with a " -0500" or " +0500" following UTC actually means 'Universal Time Coordinated' and you're talking about the fo

Re: Best ways to find time/date differences

2005-12-13 Thread $Bill Luebkert
Brian Raven wrote: > If it really is a UTC time, then it might be better to call timegm > rather than timelocal. That's correct - I thought I had timegm in there. Not sure when it got changed. ___ ActivePerl mailing list

Re: Best ways to find time/date differences

2005-12-13 Thread JPerlmutter
Bill- UTC (Universal Time Code) means something like what you get from localtime(), but with a " -0500" or " +0500" following anything UTC for us east coast would be: my $utcUSEASTtime = localtime()." +0500"; # assumes it is run in the us east coast for Isra

RE: Best ways to find time/date differences

2005-12-13 Thread Brian Raven
$Bill Luebkert <> wrote: > Mittal, Manish wrote: > >> The timestap format is -DD-MM_HH:MM:SS > > Next time you'll need to make your own attempt : > > use strict; > use warnings; > use Time::Local; > > my $date1 = ; > my $date2 = '

Re: Best ways to find time/date differences

2005-12-12 Thread $Bill Luebkert
Mittal, Manish wrote: > The timestap format is -DD-MM_HH:MM:SS Next time you'll need to make your own attempt : use strict; use warnings; use Time::Local; my $date1 = '2005-06-05_00:00:00'; my $date2 = '2005-06-06_01:02:03'; my $e1 = date2epoch ($date1); my $e

RE: Best ways to find time/date differences

2005-12-12 Thread Mittal, Manish
The timestap format is -DD-MM_HH:MM:SS Manish -Original Message- From: $Bill Luebkert [mailto:[EMAIL PROTECTED] Sent: Monday, December 12, 2005 5:41 PM To: Mittal, Manish Cc: activeperl@listserv.ActiveState.com Subject: Re: Best ways to find time/date differences Mittal, Manish

Re: Best ways to find time/date differences

2005-12-12 Thread $Bill Luebkert
Mittal, Manish wrote: > Hi, > >This is probably pretty simple, but I needed to know the various ways > to find the time/date difference between two date/time values. > > I have a time stamp in the UTC format, up to seconds. What does that mean 'UTC format

Best ways to find time/date differences

2005-12-12 Thread Mittal, Manish
Hi,    This is probably pretty simple, but I needed to know the various ways to find the time/date difference between two date/time values. I have a time stamp in the UTC format, up to seconds.   Thanks Manish   ___ ActivePerl mailing

Re: Time::stuff vs. Time qw(stuff)?

2005-11-15 Thread Hans Schleichert
[EMAIL PROTECTED] wrote: Gurus, I thought these were interchangeable, but unless I'm doing something really D-U-M, they're not. use Time::Local; use Time::localtime; That works. This doesn't: use Time qw( Local localtime ); I get "Can'

re: Time::stuff vs. Time qw(stuff)?

2005-11-14 Thread JPerlmutter
quote: Gurus, I thought these were interchangeable, but unless I'm doing something really D-U-M, they're not. use Time::Local; use Time::localtime; That works. This doesn't: use Time qw( Local localtime ); I get "Can't locate Time.pm in @IN

RE: Time::stuff vs. Time qw(stuff)?

2005-11-14 Thread Brian Raven
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of [EMAIL PROTECTED] Sent: 14 November 2005 16:10 To: activeperl@listserv.ActiveState.com Subject: Time::stuff vs. Time qw(stuff)? > Gurus, > > I thought these were interchangeable, but unless I'm doing something really

Time::stuff vs. Time qw(stuff)?

2005-11-14 Thread Deane . Rothenmaier
Gurus, I thought these were interchangeable, but unless I'm doing something really D-U-M, they're not.         use Time::Local;         use Time::localtime; That works. This doesn't:         use Time qw( Local localtime ); I get "Can't locate Time.pm in @INC ... bla

Re: need help understanding part-time error "invalid switch"

2005-11-08 Thread JPerlmutter
Bill- "$Bill Luebkert" <[EMAIL PROTECTED]> wrote on 11/07/2005 07:23:09 PM: > If your intent is to remove all directories below Z:/dssmoke, then > I'd do a File::Find starting at the base dir and do a File::Path::rmtree > on any directories found in that dir (unless you also want the files > in

  1   2   >