Sponsored Content
Full Discussion: unix timestamp
Operating Systems AIX unix timestamp Post 302197500 by era on Wednesday 21st of May 2008 05:10:27 AM
Old 05-21-2008
Option 1: see if you have the stat command, as it can do something similar.
Option 2: write a simple Perl or awk script.
Option 3: install GNU date on AIX

Here's a quick and dirty Perl script.

Code:
perl -le 'print time - (stat(shift))[9]' /path/to/file

 

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

display the timestamp of a server UNIX

I can't find the command shell UNIX to display the timestamp of the current date. It's not an option of the commande date. (3 Replies)
Discussion started by: nicolas
3 Replies

2. UNIX for Advanced & Expert Users

FTP from windows to Unix maintaining timestamp

Hi, Is it possible to Ftp the files from Windows to Unix while maintaining their timestamp Gaurav (1 Reply)
Discussion started by: gauravgoel
1 Replies

3. AIX

get unix timestamp

How can I get the unix timestamp from AIX? (6 Replies)
Discussion started by: psimoes79
6 Replies

4. Programming

converting unix timestamp into readable format using c++

hi everyone, im new here and am in desperate need of help. I want to convert my 32 bit unix time stamp ' 45d732f6' into a readable format (Sat, 17 February 2007 16:53:10 UTC) using c++. I have looked around the interent but i just cant make sense of anything. All examples i can find just... (3 Replies)
Discussion started by: uselessprog
3 Replies

5. UNIX for Advanced & Expert Users

AIX/awk date to unix timestamp

Hello, I am inside a awk script on AIX, I am feeding to awk ls -luNR i need to convert ls -u time format "month day h:m/yr" to Unix epoch time, POSIX time, or aka unix timestamp I do not have strftime funk in my awk, and i have to do this fast meaning that I cannot do a system call in the... (1 Reply)
Discussion started by: nullwhat
1 Replies

6. UNIX for Dummies Questions & Answers

Unix timestamp to readable date

How would I convert a unix timestamp such as "1232144092" to a readable date such as "1/16/2009 10:14:28 PM" ? I thought I could use date, but I don't think so now.. Any help would be great!! (4 Replies)
Discussion started by: Rhije
4 Replies

7. Shell Programming and Scripting

TimeStamp to unix time

Hi, is there a way to get unix time from timestamp using date function in unix/ OS: SunOS 5.10 input : 2012-07-26 15:00:00 output: 1343314800Thanks in advance (6 Replies)
Discussion started by: sol_nov
6 Replies

8. Shell Programming and Scripting

Check if a string is a valid timestamp in UNIX.

Hi all, I have date and time value in a string, I want to check if it is a valid date and time. Need help on this. Thanks (7 Replies)
Discussion started by: Pratiksha Mehra
7 Replies

9. Shell Programming and Scripting

AIX : Need to convert UNIX Timestamp to normal timestamp

Hello , I am working on AIX. I have to convert Unix timestamp to normal timestamp. Below is the file. The Unix timestamp will always be preceded by EFFECTIVE_TIME as first field as shown and there could be multiple EFFECTIVE_TIME in the file : 3.txt Contents of... (6 Replies)
Discussion started by: rahul2662
6 Replies

10. Shell Programming and Scripting

UNIX timestamp

Hi , I have files in s3 buckect under this directory(unix timestamp).I want to get the files on daily bases based batch date which is current unix date.Any help how to convert my unix date to unixtimestamp and get the files to local system.Any help would be great aws s3 ls... (18 Replies)
Discussion started by: mohan705
18 Replies
Perl::Critic::Exception::Configuration::Option(3pm)	User Contributed Perl Documentation    Perl::Critic::Exception::Configuration::Option(3pm)

NAME
Perl::Critic::Exception::Configuration::Option - A problem with an option in the Perl::Critic configuration. DESCRIPTION
A representation of a problem found with an option in the configuration of Perl::Critic, whether from a .perlcriticrc, another profile file, or command line. This is an abstract class. It should never be instantiated. INTERFACE SUPPORT
This is considered to be a public class. Any changes to its interface will go through a deprecation cycle. METHODS
"option_name()" The name of the option that was found to be in error. "option_value()" The value of the option that was found to be in error. "message_suffix()" Any text that should be applied to end of the standard message for this kind of exception. "message()" "error()" Overridden to call "full_message()". I.e. any message string in the superclass is ignored. "full_message()" Overridden to turn it into an abstract method to force subclasses to implement it. SEE ALSO
Perl::Critic::Exception::Configuration::Option::Global Perl::Critic::Exception::Configuration::Option::Policy AUTHOR
Elliot Shank <perl@galumph.com> COPYRIGHT
Copyright (c) 2007-2011 Elliot Shank. This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself. The full text of this license can be found in the LICENSE file included with this module. perl v5.14.2 2012-06-07 Perl::Critic::Exception::Configuration::Option(3pm)
All times are GMT -4. The time now is 08:33 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy