Sponsored Content
Top Forums Shell Programming and Scripting Convert date into epoch in Perl on Solaris Post 302304888 by KevinADC on Tuesday 7th of April 2009 01:30:58 PM
Old 04-07-2009
Quote:
Originally Posted by quirkasaurus
It looks like the Time:: .. CPAN module simply isn't installed on the other box.
Thats right, its not installed.
 

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Convert Epoch Time to Standard Date and Time & Vice Versa

Hi guys, I know that this topic has been discuss numerous times, and I have search the net and this forum for it. However, non able to address the problem I faced so far. I am on Solaris Platform and unable to install additional packages like the GNU date and gawk to make use of their... (5 Replies)
Discussion started by: DrivesMeCrazy
5 Replies

2. Shell Programming and Scripting

how to convert date time to epoch time in solaris

Hi, Is there any easy way to convert date time(stored in shell variable ) to epoch time in solaris box? As +%s is working on linux but not on solaris, also -d option is not working. Any suggestion please? (6 Replies)
Discussion started by: anshuman0507
6 Replies

3. Shell Programming and Scripting

Need to convert an epoch date to MMDDYYHHmm format

System: HP-UX Kornshell Perl is installed, but not POSIX Hello, I am calculating a future date/time. To do this I take the system date in epoch format and add to it. I now need to take the new epoch date and convert it to MMDDYYHHmm format. Any help with this is greatly appreciated. (4 Replies)
Discussion started by: LetsGoPens
4 Replies

4. Shell Programming and Scripting

Convert epoch to human readable date & time format

Hello I have log file from solaris system which has date field converted by Java application using System.currentTimeMillis() function, example is 1280943608380 which equivalent to GMT: Wed, 04 Aug 2010 17:40:08 GMT. Now I need a function in shell script which will convert 1280943608380... (3 Replies)
Discussion started by: Yaminib
3 Replies

5. Shell Programming and Scripting

Using awk or nawk to convert epoch time to date format

Looking for some help and usually when I do a search this site comes up. Hopefully someone can give me a little direction as to how to use one of these two commands to achieve what I'm trying to do. What am I trying to do? I need to take the time value in epoch format returned from the... (5 Replies)
Discussion started by: minigts
5 Replies

6. Shell Programming and Scripting

How to convert string(variable) into date( epoch) in ksh on HPUX machine?

Hi all, I have used a bash script which ultimately converts a string into date using date --date option: DATE=$DATE" "$TIME" "`date +%Y` //concatenating 2 strings TMRW_DATE=`date --date="$DATE" +"%s"` //applying date command on string and getting the unixtime Please use code tags... (7 Replies)
Discussion started by: Rashu123
7 Replies

7. Shell Programming and Scripting

Convert epoch time to Julian date

Need assistance in converting an epoch time to Julian date To get epoch perl -e 'use Time::Local; print timelocal(1,5,2,12,10,2008), "\n"' (3 Replies)
Discussion started by: ajayram_arya
3 Replies

8. Shell Programming and Scripting

Convert a date stored in a variable to epoch date

I am not able to pass date stored in a variable as an argument to date command. I get current date value for from_date and to_date #!/usr/bin/ksh set -x for s in server ; do ssh -T $s <<-EOF from_date="12-Jan-2015 12:02:09" to_date="24-Jan-2015 13:02:09" echo \$from_date echo... (7 Replies)
Discussion started by: raj48
7 Replies

9. Shell Programming and Scripting

Convert a future date into epoch seconds on HPUX system

Hi All, I have scenario where i have to compare two dates. I thought of converting them to epoch seconds and do a numeric comparison. This works fine on Linux systems. $ date -d '2015/12/31' +%s 1451538000 $ date +%s 1449159121 But we don't have -d option in HPUX. What would be... (5 Replies)
Discussion started by: veeresh_15
5 Replies

10. Shell Programming and Scripting

Convert Second Column Date Into EPOCH Time And Print Complete Row

Hello Team, I am stuck in getting the required output in the following case. Please help. My input file is aa|08/01/2016 bb|08/15/2016 I wish to convert the file into aa|epoch time bb|epoch time I am using following code: (3 Replies)
Discussion started by: angshuman
3 Replies
cpanfile-faq(3pm)					User Contributed Perl Documentation					 cpanfile-faq(3pm)

NAME
cpanfile-faq - cpanfile FAQ QUESTIONS
Does cpanfile replace Makefile.PL or Build.PL? No, it doesn't. "cpanfile" is a simpler way to declare CPAN dependencies, mainly to your application rather than CPAN distributions. In fact, most CPAN distributions do not need to switch to "cpanfile" unless they absolutely want to take advantage of some of the features (see below). This is considered a new extension for applications and installers. Why do we need yet another format? Here are some of the reasons that motivates the new cpanfile format. Not everything is a CPAN distribution First of all, it is annoying to write Makefile.PL when what you develop is not a CPAN distirbution. It gets more painful when you develop a web application that you want to deploy on a different environment using version control system (such as cloud infrastructure), because it requires you to often commit the META file or "inc/" directory (or even worse, botu) to a repository when your build script uses non-core modules such as Module::Install or File::Copy::Recursive. Many web application frameworks generate a boiler-plate "Makefile.PL" for dependency declaration and to let you install dependencies with "cpanm --installdeps .", but that doesn't always mean they are meant to be installed. Things can be often much simpler if you run the application from the checkout directory. With cpanfile, dependencies can be installed either globally or locally using supported tools such as cpanm or carton. Because "cpanfile" lists all the dependencies of your entire application and will be updated over time, it makes perfect sense to commit the file to a version control system, and push the file for a deployment. More control for the dependencies analysis One of the limitation when I tried to implement a self-contained local::lib library path feature for cpanminus was that the configuration phase runs the build file as a separate perl process, i.e. "perl Makefile.PL". This makes it so hard for the script to not accidentally load any modules installed in the local "site_perl" directory when determining the dynamic dependencies. With the recent evolution of CPAN installer ecosystem such as local::lib support, it makes things much easier if installers figure out whether dependencies are installed, instead of by build tools such as Module::Install. Familiar DSL syntax This is a new file type, but the format and syntax isn't entirely new. The metadata it can declare is exactly a subset of "Prereqs" in CPAN Meta Spec, with some conditionals such as "platform" and "perl". The syntax borrows a lot from Module::Install. Module::Install is a great way to easily declare module metadata such as name, author and dependencies. cpanfile format is simply to extract the dependencies into a separate file, which means most of the developers are familiar with the syntax. Complete CPAN Meta Spec v2 support "cpanfile" basically allows you to declare CPAN::Meta::Spec prerequisite specification using an easy Perl DSL syntax. This makes it easy to declare per-phase dependencies and newer version 2 features such as conflicts and version ranges. How can I start using "cpanfile"? First of all, most distributions on CPAN are not required to update to this format. If your application currently uses "Makefile.PL" etc. for dependency declaration because of the current toolchain implementation (e.g. "cpanm --installdeps ."), you can upgrade to "cpanfile" while keeping the build file based installation working for the backward compatibility. TBD: Support in other tools such as MakeMaker perl v5.14.2 2012-04-04 cpanfile-faq(3pm)
All times are GMT -4. The time now is 08:46 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy