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 comparing if both of the same

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 seconds and $cmpn_dat

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 dat

RE: Image Conversion to JPEG

2005-10-26 Thread Steve . Dawson
> -Original Message- > From: Sandeep Deshpande [mailto:[EMAIL PROTECTED] > Sent: Wednesday, October 26, 2005 6:43 AM > Subject: Image Conversion to JPEG > > Hi all, > I have this typical requirement on Mac system and I want to use Perl. > > 1) I have to op

RE: Image Conversion to JPEG

2005-10-26 Thread Chris Snyder
43 AM Subject: Image Conversion to JPEG Hi all, I have this typical requirement on Mac system and I want to use Perl. 1) I have to open Illustrator EPS files in Illustrator and have to save it as JPG at the same location. 2) Open Photoshop EPS in Photoshop and save it to JPG at the same locati

RE: Image Conversion to JPEG

2005-10-26 Thread Brian Raven
Sandeep Deshpande <> wrote: > Hi all, > I have this typical requirement on Mac system and I want to use Perl. > > 1) I have to open Illustrator EPS files in Illustrator and have to > save it as JPG at the same location. > 2) Open Photoshop EPS in Photoshop and save it to JPG at the same > loca

Image Conversion to JPEG

2005-10-26 Thread Sandeep Deshpande
Hi all, I have this typical requirement on Mac system and I want to use Perl. 1) I have to open Illustrator EPS files in Illustrator and have to save it as JPG at the same location. 2) Open Photoshop EPS in Photoshop and save it to JPG at the same location. 3) TIFF could be opened in any app

image conversion in Windows9x/NT/XP

2003-03-23 Thread viktoras
Hi, Does anybody know any lightweight true-color ppm-jpg or ppm-png image conversion module (or at least algorithm). At this moment i do not want to use ImageMagics. While perl GD in Perldoc is still reported as 8 bit color module. I've a new version of GD, just downloaded from Active

RE: Decimal to Hex or Bin Floating point conversion.

2003-02-05 Thread Power, Jim \(CRTEU\)
Title: RE: Decimal to Hex or Bin Floating point conversion. $Bill Luebkert [mailto:[EMAIL PROTECTED]]  wrote: > >   Power, Jim (CRTEU) wrote: >   > Hello Everyone, >   > I need convert from decimal to hex floating point ( ieee 754 format).< >  

Re: Decimal to Hex or Bin Floating point conversion.

2003-02-05 Thread $Bill Luebkert
Power, Jim (CRTEU) wrote: Hello Everyone, I need convert from decimal to hex floating point ( ieee 754 format). Decimal 156.256 equals hexadecimal 431c4189 in 32bit floating. I can do by hand or Hex calculator, I was hoping to find a module or script that does this before doing the coding myse

Decimal to Hex or Bin Floating point conversion.

2003-02-05 Thread Power, Jim \(CRTEU\)
Title: Decimal to Hex or Bin Floating point conversion. Hello Everyone, I need convert from decimal to hex floating point ( ieee 754 format). Decimal 156.256 equals hexadecimal 431c4189 in 32bit floating. I can do by hand or Hex calculator, I was hoping to find a module or script that

RE: Date Conversion in Perl

2003-01-29 Thread brianr
Kenneth Jideofor \[ MTN - Ikoyi \] writes: > Hi, > > Given a number of days, it is expected to determine the real date from Jan > 1, 1970. > The real date should be in the following format: Year-Month-Day. > > How do I implement this task using Perl. > > For example, write a Perl script

Re: Date Conversion in Perl

2003-01-29 Thread Mark Morgan
" <[EMAIL PROTECTED]> > To: [EMAIL PROTECTED] > Subject: Date Conversion in Perl > > Hi, > > Given a number of days, it is expected to determine the real date from Jan > 1, 1970. > The real date should be in the following format: Year-Month-Day. > > How d

Date Conversion in Perl

2003-01-29 Thread Kenneth Jideofor \[ MTN - Ikoyi \]
Hi, Given a number of days, it is expected to determine the real date from Jan 1, 1970. The real date should be in the following format: Year-Month-Day. How do I implement this task using Perl. For example, write a Perl script to convert 12016 days to its real date from Jan 1, 1970. Regards, Ke

RE: Guess native character encodings for conversion to UTF-8 in XML?

2002-05-05 Thread henrik . martensson
EMAIL PROTECTED] > Subject: Guess native character encodings for conversion to UTF-8 in > XML? > > > Hi all, > I have giant batches of invoices from around the world. I'm trying to > stick their native text into a XML document as UTF-8. The thing is, the > text I'm seei

Re: Audio conversion ?

2002-02-15 Thread Dougal Campbell
On Fri, 15 Feb 2002, Herold Heiko wrote: > Anybody has an idea what to use for *generic* audio conversion ? > [] > A direct interface in perl would be better, but I'd accept to system() > out if neccessary. The good old sox would have been usefull but since > http://www

Audio conversion ?

2002-02-15 Thread Herold Heiko
Anybody has an idea what to use for *generic* audio conversion ? Basically what I need is to convert as much as possible of audio files playable on a current (windows) machine into some simpler format - say wav signed, same mono/stereo and sample frequency as the original if applicable, my

RE: conversion

2001-02-15 Thread RALPH
Is this what you are looking for? $line = "Is there a way to find the ASCII value of a character in perl, so that I can ouput the ASCII code and the character in the following code?"; @chars=split('',$line); foreach $ch (@chars) { $c = ord $ch; print "$ch, $c\n"; } Ralph

Re: conversion

2001-02-15 Thread Jörg Plate
> the transliteration (tr) code took: 0 wallclock secs ( 0.11 usr + 0.00 sys = 0.11 CPU) > the lowercase (lc) code took: 1 wallclock secs ( 0.98 usr + 0.00 sys = 0.98 CPU) Sorry, but I won't trust any benchmark which doesn't run for at least 30 seconds (for each part) > $foo =~ tr/[A-Z]/[a-z]

RE: conversion

2001-02-14 Thread Bill Duncan
nal Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Chandra Ramesh Sent: Wednesday, February 14, 2001 2:11 AM To: Shil; [EMAIL PROTECTED] Cc: Chandra Ramesh Subject: RE: conversion Hello, Use "transpose (tr)" to convert from one case to another.. For