Sponsored Content
Top Forums UNIX for Dummies Questions & Answers Last modification date without 'ls' Post 302403583 by Peuj on Saturday 13th of March 2010 09:25:19 AM
Old 03-13-2010
Thanks for all the replies, I'll try all this on Monday and let you know.
 

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

command for modification date of a file

Good morning, I would like to find all files of a certain type and display their name as well as their modification date. In order to do this, I would do the following: find ./ -name *.csv | ???????? My question: what to put after the pipe instead of the question marks? Is there a basic... (5 Replies)
Discussion started by: scampsd
5 Replies

2. UNIX for Dummies Questions & Answers

Search by modification date

Hi I'd like to know if is it possible to find files given a certain modification date (say, 01-05-2006, that's 1st of May 2006) I can calculate the days backward: find / -ctime 23 but I wish to search by exact modification day Thanks (5 Replies)
Discussion started by: slink
5 Replies

3. Solaris

temporary modification of date

Goodmorning, I have a server with solaris 2.6 installed. Is it possible modify system date only temporary that, automatically, after a reboot, I can have again the date after the temporary mofication? I don't want to use "date" command after reboot for tidy up date. I only want to find a... (2 Replies)
Discussion started by: bonovox
2 Replies

4. UNIX for Advanced & Expert Users

Help with sorting files according to modification date

Hi, I was very surprised to not be able to find an answer to this question despite my best efforts in Google and elsewhere. Maybe it's a good thing as it forced me to finally become a member in this great forum that i use frequently. Ok my question: I want to be able to sort files inside a... (3 Replies)
Discussion started by: stavros
3 Replies

5. Solaris

search for date of modification

hi member. i want to know all file in the system which the last date of modification = 14-06-2010 for example what can i do (4 Replies)
Discussion started by: xxmasrawy
4 Replies

6. Shell Programming and Scripting

Rename old files with last modification date

Hi everyone, I have files like file1_Mod.txt, file2_Mod.txt. I want to rename the old files with the last modification date. I write the below script to rename with current date, but I donīt know how to use "date -r" to get the last modification date with the same format I have below... (5 Replies)
Discussion started by: cgkmal
5 Replies

7. UNIX for Dummies Questions & Answers

How do you get the last modification date of a file?

I'm trying to get the date output to be in the form yyyy-mm-dd (e.g. 2013-01-18) !/bin/sh modDate=$(stat -c %y $1) echo $modDate >> $1 When I run this on another file (by typing ./dateScript theFile.txt), I keep getting this message: stat: illegal option -- c What's wrong with my code... (2 Replies)
Discussion started by: Nate18
2 Replies

8. Shell Programming and Scripting

Date Modification

Hello all ! I have a piece of code that generates the date of one day ago: /usr/bin/gdate --date='1 day ago' | awk '{print $2 " " $3}' Nov 3 I want the output to be in the form : Nov 03 What other operation should I do for that ? Help (2 Replies)
Discussion started by: Junaid Subhani
2 Replies

9. Programming

File date/time modification and permissions

First, oh great Unix gurus, forgive if this is a stupid question. Unix/Linux is not my main thing but I have been programming in C/C++ for many years. I will do my best to be specific. I have a program in C/C++ that needs to modify the time of a given file. Currently I do this using utime()... (5 Replies)
Discussion started by: Pug
5 Replies

10. Shell Programming and Scripting

Subtract a file's modification date with current date

SunOS -s 5.10 Generic_147440-04 sun4u sparc SUNW,SPARC-Enterprise Hi, In a folder, there are files. I have a script which reads the current date and subtract the modification date of each file. How do I achieve this? Regards, Joe (2 Replies)
Discussion started by: roshanbi
2 Replies
DateTime::Locale::Base(3)				User Contributed Perl Documentation				 DateTime::Locale::Base(3)

NAME
DateTime::Locale::Base - Base class for individual locale objects SYNOPSIS
use base 'DateTime::Locale::Base'; DEFAULT FORMATS
Each locale has a set of four default date and time formats. They are distinguished by length, and are called "full", "long", "medium", and "short". Each locale may have a different default length which it uses when its "$locale->date_format_default()", "$locale->time_format_default()", or "$locale->datetime_format_default()" methods are called. This can be changed by calling the "$locale->set_default_date_format()" or "$locale->set_default_time_format()" methods. These methods accept a string which must be one of "full", "long", "medium", or "short". NAME FORMS
Most names come in a number of variations. First, they may vary based on length, with wide, abbreviated, and narrow forms. The wide form is typically the full name, while the narrow form is often a single character. The narrow forms may not be unique. For example, "T" may be used for Tuesday and Thursday in the English narrow forms. Many names also distinguish between "format" and "stand-alone" forms of a pattern. The format pattern is used when the thing in question is being placed into a larger string. The stand-alone form is used when displaying that item by itself, for example in a calendar. METHODS
All locales provide the following methods: o $locale->id() The locale's id. o $locale->language_id() The language portion of the id. o $locale->script_id() The script portion of the id, if any. o $locale->territory_id() The territory portion of the id, if any. o $locale->variant_id() The variant portion of the id, if any. o $locale->name() The full name for the locale in English. o $locale->language() The language name for the locale in English. o $locale->script() The script name for the locale in English, if any. o $locale->territory() The territory name for the locale in English, if any. o $locale->variant() The variant name for the locale in English, if any. o $locale->native_name() The full name for the locale in its native language, if any. o $locale->native_language() The language name for the locale in its native language, if any. o $locale->native_script() The script name for the locale in its native language, if any. o $locale->native_territory() The territory name for the locale in its native language, if any. o $locale->native_variant() The variant name for the locale in its native language, if any. o $locale->month_format_wide() Returns an array reference containing the wide format names of the months, with January as the first month. o $locale->month_format_abbreviated() Returns an array reference containing the abbreviated format names of the months, with January as the first month. o $locale->month_format_narrow() Returns an array reference containing the narrow format names of the months, with January as the first month. o $locale->month_stand_alone_wide() Returns an array reference containing the wide stand-alone names of the months, with January as the first month. o $locale->month_stand_alone_abbreviated() Returns an array reference containing the abbreviated stand-alone names of the months, with January as the first month. o $locale->month_stand_alone_narrow() Returns an array reference containing the narrow stand-alone names of the months, with January as the first month. o $locale->day_format_wide() Returns an array reference containing the wide format names of the days, with Monday as the first day. o $locale->day_format_abbreviated() Returns an array reference containing the abbreviated format names of the days, with Monday as the first day. o $locale->day_format_narrow() Returns an array reference containing the narrow format names of the days, with Monday as the first day. o $locale->day_stand_alone_wide() Returns an array reference containing the wide stand-alone names of the days, with Monday as the first day. o $locale->day_stand_alone_abbreviated() Returns an array reference containing the abbreviated stand-alone names of the days, with Monday as the first day. o $locale->day_stand_alone_narrow() Returns an array reference containing the narrow stand-alone names of the days, with Monday as the first day. o $locale->quarter_format_wide() Returns an array reference containing the wide format names of the quarters. o $locale->quarter_format_abbreviated() Returns an array reference containing the abbreviated format names of the quarters. o $locale->quarter_format_narrow() Returns an array reference containing the narrow format names of the quarters. o $locale->quarter_stand_alone_wide() Returns an array reference containing the wide stand-alone names of the quarters. o $locale->quarter_stand_alone_abbreviated() Returns an array reference containing the abbreviated stand-alone names of the quarters. o $locale->quarter_stand_alone_narrow() Returns an array reference containing the narrow stand-alone names of the quarters. o $locale->era_wide() Returns an array reference containing the wide names of the eras, with "BCE" first. o $locale->era_abbreviated() Returns an array reference containing the abbreviated names of the eras, with "BCE" first. o $locale->era_narrow() Returns an array reference containing the abbreviated names of the eras, with "BCE" first. However, most locales do not differ between the narrow and abbreviated length of the era. o $locale->am_pm_abbreviated() Returns an array reference containing the abbreviated names of "AM" and "PM". o $locale->date_format_long() o $locale->date_format_full() o $locale->date_format_medium() o $locale->date_format_short() Returns the CLDR date pattern of the appropriate length. o $locale->date_formats() Returns a hash reference of CLDR date patterns for the date formats, where the keys are "full", "long", "medium", and "short". o $locale->time_format_long() o $locale->time_format_full() o $locale->time_format_medium() o $locale->time_format_short() Returns the CLDR date pattern of the appropriate length. o $locale->time_formats() Returns a hash reference of CLDR date patterns for the time formats, where the keys are "full", "long", "medium", and "short". o $locale->datetime_format_long() o $locale->datetime_format_full() o $locale->datetime_format_medium() o $locale->datetime_format_short() Returns the CLDR date pattern of the appropriate length. o $locale->datetime_formats() Returns a hash reference of CLDR date patterns for the datetime formats, where the keys are "full", "long", "medium", and "short". o $locale->date_format_default() o $locale->time_format_default() o $locale->datetime_format_default() Returns the default CLDR date pattern. The length of this format is based on the value of "$locale->default_date_format_length()" and/or "$locale->default_time_format_length()". o $locale->default_date_format_length() o $locale->default_time_format_length() Returns the default length for the format, one of "full", "long", "medium", or "short". o $locale->set_default_date_format_length() o $locale->set_default_time_format_length() Sets the default length for the format. This must be one of "full", "long", "medium", or "short". o $locale->prefers_24_hour_time() Returns a boolean indicating the preferred hour format for this locale. o $locale->first_day_of_week() Returns a number from 1 to 7 indicating the local first day of the week, with Monday being 1 and Sunday being 7. For example, for a US locale this returns 7. o $locale->available_formats() A list of format names, like "MMdd" or "yyyyMM". This should be the list directly supported by the subclass, not its parents. o $locale->format_for($key) Given a valid name, returns the CLDR date pattern for that thing, if one exists. SUPPORT
See DateTime::Locale. AUTHORS
Richard Evans <rich@ridas.com> Dave Rolsky <autarch@urth.org> COPYRIGHT
Copyright (c) 2003 Richard Evans. Copyright (c) 2004-2005 David Rolsky. All rights reserved. This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself. This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself. The full text of the license can be found in the LICENSE file included with this module. perl v5.16.2 2013-08-25 DateTime::Locale::Base(3)
All times are GMT -4. The time now is 03:34 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy