Code/Resource
Windows Develop
Linux-Unix program
Internet-Socket-Network
Web Server
Browser Client
Ftp Server
Ftp Client
Browser Plugins
Proxy Server
Email Server
Email Client
WEB Mail
Firewall-Security
Telnet Server
Telnet Client
ICQ-IM-Chat
Search Engine
Sniffer Package capture
Remote Control
xml-soap-webservice
P2P
WEB(ASP,PHP,...)
TCP/IP Stack
SNMP
Grid Computing
SilverLight
DNS
Cluster Service
Network Security
Communication-Mobile
Game Program
Editor
Multimedia program
Graph program
Compiler program
Compress-Decompress algrithms
Crypt_Decrypt algrithms
Mathimatics-Numerical algorithms
MultiLanguage
Disk/Storage
Java Develop
assembly language
Applications
Other systems
Database system
Embeded-SCM Develop
FlashMX/Flex
source in ebook
Delphi VCL
OS Develop
MiddleWare
MPI
MacOS develop
LabView
ELanguage
Software/Tools
E-Books
Artical/Document
TIME.2
Upload User: jnzhq888
Upload Date: 2007-01-18
Package Size: 51694k
Code Size: 1k
Category:
OS Develop
Development Platform:
WINDOWS
- TIME(2) Minix Programmer's Manual TIME(2)
- NAME
- time, stime - get/set date and time
- SYNOPSIS
- #include <sys/types.h>
- #include <time.h>
- time_t time(time_t *tp)
- int stime(time_t *tp)
- DESCRIPTION
- The system's notion of the current Greenwich time is obtained with the
- time call, and set with the stime call. The time is expressed in seconds
- since midnight (0 hour), January 1, 1970. The time is both returned by
- time and stored in the variable pointed to by tp unless tp is the null
- pointer.
- Stime obtains the time to set from the variable pointed to by tp.
- Only the super-user may set the time of day.
- RETURN
- A 0 return value from stime indicates that the call succeeded. 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 errno.
- ERRORS
- The following error codes may be set in errno:
- [EFAULT] The tp address referenced invalid memory.
- [EPERM] A user other than the super-user attempted to set the
- time.
- SEE ALSO
- date(1), ctime(3).
- 4BSD May 14, 1986 1