Unix and Linux Discussions Tagged with modification |
|
Thread / Thread Starter |
Last Post |
Replies |
Views |
Forum |
|
|
|
4 |
5,986 |
UNIX for Beginners Questions & Answers |
|
|
|
6 |
1,461 |
UNIX for Beginners Questions & Answers |
|
|
|
3 |
23,769 |
UNIX for Dummies Questions & Answers |
|
|
|
1 |
2,636 |
UNIX and Linux Applications |
|
|
|
0 |
1,921 |
UNIX for Dummies Questions & Answers |
|
|
|
2 |
4,377 |
UNIX for Advanced & Expert Users |
|
|
|
1 |
2,986 |
IP Networking |
|
|
|
3 |
2,794 |
UNIX for Advanced & Expert Users |
|
|
|
1 |
6,743 |
Solaris |
|
|
|
4 |
2,511 |
Shell Programming and Scripting |
|
|
|
1 |
2,568 |
UNIX for Advanced & Expert Users |
|
|
|
2 |
2,491 |
UNIX for Dummies Questions & Answers |
|
|
|
4 |
8,691 |
Programming |
|
|
|
1 |
8,614 |
UNIX for Dummies Questions & Answers |
|
|
|
1 |
16,206 |
UNIX for Dummies Questions & Answers |
|
|
|
1 |
4,188 |
UNIX for Dummies Questions & Answers |
|
|
|
1 |
7,584 |
UNIX for Dummies Questions & Answers |
|
|
|
2 |
40,292 |
UNIX for Dummies Questions & Answers |
|
|
|
4 |
10,343 |
UNIX for Dummies Questions & Answers |
|
|
|
1 |
1,826 |
UNIX for Dummies Questions & Answers |
|
|
|
2 |
4,635 |
UNIX for Dummies Questions & Answers |
|
|
|
1 |
7,949 |
UNIX for Dummies Questions & Answers |
GETLASTMOD(3) 1 GETLASTMOD(3)
getlastmod - Gets time of last page modification
SYNOPSIS
int getlastmod (void )
DESCRIPTION
Gets the time of the last modification of the main script of execution.
If you're interested in getting the last modification time of a different file, consider using filemtime(3).
RETURN VALUES
Returns the time of the last modification of the current page. The value returned is a Unix timestamp, suitable for feeding to date(3).
Returns FALSE on error.
EXAMPLES
Example #1
getlastmod(3) example
<?php
// outputs e.g. 'Last modified: March 04 1998 20:43:59.'
echo "Last modified: " . date ("F d Y H:i:s.", getlastmod());
?>
SEE ALSO
date(3), getmyuid(3), getmygid(3), get_current_user(3), getmyinode(3), getmypid(3), filemtime(3).
PHP Documentation Group GETLASTMOD(3)