elks-enhanced
public
Read
Owner: themaster
Branch: master
Commits: 6893
Updated: 2026-04-19 00:15
Git CLI clone URL
git clone https://www.xt-emporium.com/git/elks-enhanced.git
Fullscreen desktop URL
Code
Commits
History
Branches
Bug Reports
Discussions
Compare
Settings
elks-enhanced
/
elkscmd
/
man
/
man2
/
time.2
File editor
.\" Copyright (c) 1980 Regents of the University of California. .\" All rights reserved. The Berkeley software License Agreement .\" specifies the terms and conditions for redistribution. .\" .\" @(#)gettimeofday.2 6.7 (Berkeley) 5/14/86 .\" .TH TIME 2 "May 14, 1986" .UC 4 .SH NAME time, stime \- get date and time .SH SYNOPSIS .nf .ft B #include <sys/types.h> #include <time.h> time_t time(time_t *\fItp\fP) .fi .SH DESCRIPTION The system's notion of the current Greenwich time is obtained with the .B time call. The time is expressed in seconds since midnight (0 hour), January 1, 1970. The time is both returned by .B time and stored in the variable pointed to by .I tp unless .I tp is the null pointer. .SH RETURN .B Time returns the current time on success. A \-1 return value indicates an error occurred, and in this case an error code is stored into the global variable \fBerrno\fP. .SH "ERRORS The following error codes may be set in \fBerrno\fP: .TP 15 [EFAULT] The .I tp address referenced invalid memory. .SH "SEE ALSO" .BR date (1), .BR ctime (3).
Commit message
This repository is read-only for this account.
Repository snapshot
Current branch
master
Visibility
public
Your access
Read
Remote
Configured
File activity
View file history