Unix and Linux Discussions Tagged with time |
|
Thread / Thread Starter |
Last Post |
Replies |
Views |
Forum |
|
|
|
32 |
283,177 |
Shell Programming and Scripting |
|
|
|
0 |
59,555 |
Web Development |
|
|
|
2 |
7,724 |
UNIX for Beginners Questions & Answers |
|
|
|
1 |
4,442 |
UNIX for Beginners Questions & Answers |
|
|
|
14 |
14,727 |
UNIX for Beginners Questions & Answers |
|
|
|
2 |
39,902 |
UNIX for Advanced & Expert Users |
|
|
|
2 |
7,287 |
UNIX for Beginners Questions & Answers |
|
|
|
4 |
4,269 |
UNIX for Beginners Questions & Answers |
|
|
|
9 |
31,913 |
Programming |
|
|
|
5 |
8,107 |
Shell Programming and Scripting |
|
|
|
4 |
13,645 |
Shell Programming and Scripting |
|
|
|
1 |
11,932 |
What is on Your Mind? |
|
|
|
6 |
6,684 |
UNIX for Beginners Questions & Answers |
|
|
|
1 |
11,109 |
UNIX for Advanced & Expert Users |
|
|
|
4 |
7,316 |
Shell Programming and Scripting |
|
|
|
1 |
5,214 |
UNIX for Beginners Questions & Answers |
|
|
|
6 |
6,703 |
UNIX for Beginners Questions & Answers |
|
|
|
3 |
4,029 |
UNIX for Beginners Questions & Answers |
|
|
|
4 |
5,853 |
UNIX for Beginners Questions & Answers |
|
|
|
4 |
79,929 |
UNIX for Beginners Questions & Answers |
|
|
|
1 |
4,114 |
UNIX for Beginners Questions & Answers |
|
|
|
2 |
5,456 |
Shell Programming and Scripting |
|
|
|
1 |
5,427 |
UNIX for Beginners Questions & Answers |
|
|
|
1 |
11,822 |
What is on Your Mind? |
|
|
|
4 |
25,882 |
Shell Programming and Scripting |
|
|
|
4 |
5,949 |
UNIX for Beginners Questions & Answers |
|
|
|
3 |
4,083 |
UNIX for Beginners Questions & Answers |
|
|
|
13 |
6,080 |
UNIX for Beginners Questions & Answers |
|
|
|
1 |
4,984 |
UNIX for Beginners Questions & Answers |
|
|
|
2 |
4,847 |
UNIX for Beginners Questions & Answers |
|
|
|
3 |
3,370 |
UNIX for Beginners Questions & Answers |
|
|
|
13 |
7,844 |
UNIX for Beginners Questions & Answers |
|
|
|
7 |
24,523 |
UNIX for Beginners Questions & Answers |
|
|
|
1 |
6,839 |
UNIX for Beginners Questions & Answers |
|
|
|
3 |
9,694 |
Shell Programming and Scripting |
|
|
|
1 |
12,676 |
Shell Programming and Scripting |
|
|
|
5 |
3,622 |
Shell Programming and Scripting |
|
|
|
5 |
3,250 |
Shell Programming and Scripting |
|
|
|
6 |
5,344 |
Shell Programming and Scripting |
|
|
|
1 |
8,075 |
Solaris |
time(2) System Calls time(2)
NAME
time - get time
SYNOPSIS
#include <sys/types.h>
#include <time.h>
time_t time(time_t *tloc);
DESCRIPTION
The time() function returns the value of time in seconds since 00:00:00 UTC, January 1, 1970.
If tloc is non-zero, the return value is also stored in the location to which tloc points. If tloc points to an illegal address, time()
fails and its actions are undefined.
RETURN VALUES
Upon successful completion, time() returns the value of time. Otherwise, (time_t)-1 is returned and errno is set to indicate the error.
ATTRIBUTES
See attributes(5) for descriptions of the following attributes:
+-----------------------------+-----------------------------+
| ATTRIBUTE TYPE | ATTRIBUTE VALUE |
+-----------------------------+-----------------------------+
|Interface Stability |Standard |
+-----------------------------+-----------------------------+
|MT-Level |Async-Signal-Safe |
+-----------------------------+-----------------------------+
SEE ALSO
stime(2), ctime(3C), attributes(5), standards(5)
SunOS 5.11 28 Dec 1996 time(2)