10-04-2001
file creation time
i have to delete some files that were created on a particular date. is there any way to do that without affecting the files that were modified on the same date?
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
Hi All,
I have some files which are creates every day using a script. I want to create a log files which does write "filename,creation day and time"
how can I do this ??
Alice (3 Replies)
Discussion started by: alisevA3
3 Replies
2. Shell Programming and Scripting
IS there any command to find the file creation time in Unix. (2 Replies)
Discussion started by: tinivt
2 Replies
3. Programming
Hi Everybody,
Is their any functions to find out the file creation time in 'C' (2 Replies)
Discussion started by: mr_manii
2 Replies
4. Shell Programming and Scripting
Hi All,
Cany any one help me in solving this..
Problem statement: I have a requirement to find the time from which there are no files created in a given directory. For this I am assuming that I need to get the file creation time in seconds, then the current time in seconds using `date +%s`.... (7 Replies)
Discussion started by: chary
7 Replies
5. Shell Programming and Scripting
Hello folks,
I have a file, but it change every seconds, i use stats command to check its creation time, but it shows access,modify and change time same. Is there any other way to see the file creation date/time?
Thanks (2 Replies)
Discussion started by: learnbash
2 Replies
6. UNIX for Dummies Questions & Answers
Hello,
I registered and recreated this thread because everywhere we can see "It's not possible to get the file creation time in UNIX fs". This is not true any more with Ext4! Unfortunately, there is not user-level tools that allow you to read those information. You have to use a low level tool... (4 Replies)
Discussion started by: gaellafond
4 Replies
7. Red Hat
Hi Everybody,
I would like to know file creation date and time in linux. I went throgh google and forums got some information but from that i am not sure for my question. Please check the following information.
"ls -l" ==> but it is just gives the last modified time and date of the file.... (2 Replies)
Discussion started by: mastansaheb
2 Replies
8. UNIX for Dummies Questions & Answers
Hi All,
Can any one help how to long list today's files in unix.i.e files which are have been created today should be able to "ls -ltr" .I should be able to apply the "ls -ltr" command on today's files(should not include all the files which were there in the directory).
Thanks in advance!!! (3 Replies)
Discussion started by: Balasankar
3 Replies
9. Shell Programming and Scripting
Hi ,
In a folder I have multiple files. I want total time taken to write those files. Can you please suggest what will be the best way to go for it? (2 Replies)
Discussion started by: Anupam_Halder
2 Replies
10. UNIX for Beginners Questions & Answers
Hi Team,
Could you please let me know ,how to find the file creation date time in SFTP server.
i tred like , ls -ltr command only availble and not available like ls --full-time test.txt
please help?
Thanks (7 Replies)
Discussion started by: bmk123
7 Replies
LEARN ABOUT PHP
http_cache_last_modified
HTTP_CACHE_LAST_MODIFIED(3) 1 HTTP_CACHE_LAST_MODIFIED(3)
http_cache_last_modified - Caching by last modification
SYNOPSIS
bool http_cache_last_modified ([int $timestamp_or_expires])
DESCRIPTION
Attempts to cache the sent entity by its last modification date.
If the supplied argument is greater than 0, it is handled as timestamp and will be sent as date of last modification. If it is 0 or omit-
ted, the current time will be sent as Last-Modified date. If it's negative, it is handled as expiration time in seconds, which means that
if the requested last modification date is not between the calculated timespan, the Last-Modified header is updated and the actual body
will be sent.
A log entry will be written to the cache log if the INI settinghttp.log.cache is set and the cache attempt was successful.
Note
This function may be used in conjunction with http_send_data(3), http_send_file(3) and http_send_stream(3).
PARAMETERS
o $timestamp_or_expires
- Unix timestamp
RETURN VALUES
Returns FALSE or exits on success with 304 Not Modified if the entity is cached. See the INI settinghttp.force_exit for what "exits"
means.
EXAMPLES
Example #1
A http_cache_last_modified(3) example
Caching for 5 seconds.
<?php
http_cache_last_modified(-5);
printf("%s
", http_date());
?>
SEE ALSO
http_cache_etag(3), the HttpResponse class if you are using PHP 5.1.0 and above.
PHP Documentation Group HTTP_CACHE_LAST_MODIFIED(3)