Home
Library
Online Compilers
Jobs
Whiteboard
Tools
Articles
Write & Earn
Courses
Certifications
Menu
Categories
Login
Switch theme
Category
AI, ML, and Data Science
Programming Languages
Web Development Languages
DevOps
Databases
Computer Science Subjects
Python Technologies
Software Testing
Cyber Security
All Categories
Back
Artificial Intelligence
Machine Learning
ML With Python
Data Science
Statistics
NLP
Neural Networks
TensorFlow
PyTorch
Matplotlib
NumPy
Pandas
SciPy
Big Data Analytics
See all
Back
Python
Java
C++
C
PHP
Go
Kotlin
R
ASP.Net
C#.Net
VB.Net
Scala
Swift
Perl
Ruby
Rust
Lua
See all
Back
HTML
CSS
JavaScript
jQuery
ReactJs
NodeJs
Wordpress
AngularJs
PHP
Django
JSON
Codeigniter
TypeScript
Ajax
Bootstrap
Sass
AppML
See all
Back
GIT
AWS
Docker
Kubernetes
Azure
Gitlab
Jira
Gerrit
Ansible
Bugzilla
Chef
SaltStack
OpenShift
Puppet
UNIX
Linux Admin
Ubuntu
See all
Back
DBMS
SQL
PL/SQL
MySQL
TinyDB
SQL Server
MongoDB
PostgreSQL
SQLite
Redis
PHP MyAdmin
MariaDB
CouchDB
DB2
See all
Back
Computer Fundamentals
Operating System
DBMS
DSA
Computer Networks
Software Engineering
Computer Graphics
Data Mining
Digital Marketing
SEO
Digital Circuits
Discrete Mathematics
Cryptography
Cloud Computing
Compiler Design
Embedded Systems
Microprocessors
See all
Back
Python
NumPy
Pandas
Matplotlib
Django
PyQt
PyCharm
Pillow
OpenCV
Seaborn
ML with Python
SciPy
See all
Back
Software Testing
Jira
Selenium
TestRail
Postman
Cucumber
Cypress
Watir
Agile
jMeter
Back
Blockchain
Information Security
Computer Security
Internet Security
Network Security
Wireless Security
Library
Courses
Certifications
Login
Menu
Show search
SQL
HTML
CSS
Javascript
Python
Java
C
C++
PHP
Scala
C#
Tailwind CSS
Node.js
MySQL
MongoDB
PL/SQL
Swift
Bootstrap
R
Machine Learning
Blockchain
Angular
React Native
Computer Fundamentals
Compiler Design
Operating System
Data Structure and Algorithms
Computer Network
DBMS
Excel
精選閱讀
UPSC IAS 考試筆記
開發者最佳實踐
問答
有效的簡歷撰寫
人力資源面試問題
計算機詞彙表
名人錄
stime() - Unix、Linux 系統呼叫 - 技術教學
網路
本網站
Unix 初學者指南
Unix - 首頁
Unix - 入門
Unix - 檔案管理
Unix - 目錄
Unix - 檔案許可權
Unix - 環境
Unix - 基本實用程式
Unix - 管道與過濾器
Unix - 程序
Unix - 通訊
Unix - vi 編輯器
Unix Shell 程式設計
Unix - 什麼是 Shell?
Unix - 使用變數
Unix - 特殊變數
Unix - 使用陣列
Unix - 基本運算子
Unix - 決策
Unix - Shell 迴圈
Unix - 迴圈控制
Unix - Shell 替換
Unix - 引號機制
Unix - I/O 重定向
Unix - Shell 函式
Unix - 手冊頁幫助
高階 Unix
Unix - 正則表示式
Unix - 檔案系統基礎
Unix - 使用者管理
Unix - 系統性能
Unix - 系統日誌
Unix - 訊號和陷阱
Unix 有用參考
Unix - 有用命令
Unix - 快速指南
Unix - 內建函式
Unix - 系統呼叫
Unix - 命令列表
Unix 有用資源
Unix 有用資源
精選閱讀
計算機詞彙表
名人錄
版權所有 © 2014 tutorialspoint
首頁
參考
討論論壇
關於 TP
stime() - Unix、Linux 系統呼叫
廣告
名稱
stime - 設定時間
語法
#define _SVID_SOURCE
/* glibc2 需要此項 */
#include <time.h>
int stime(time_t *
t
);
描述
stime
() 設定系統對時間和日期的理解。由
t
指向的時間以 1970 年 1 月 1 日 00:00:00 格林威治標準時間開始計算的秒數來衡量。
stime
() 只能由超級使用者執行。
返回值
成功時,返回零。失敗時,返回 -1,並且
errno
被相應地設定。
錯誤
標籤
描述
EFAULT
從使用者空間獲取資訊時出錯。
EPERM
呼叫程序許可權不足。在 Linux 下,需要
CAP_SYS_TIME
許可權。
符合標準
SVr4。
備註
在 glibc2 下,只有在定義了
_SVID_SOURCE
時,
<time.h>
才會提供原型。
參見
date (1)
settimeofday (2)
廣告
廣告
列印頁面
上一頁
下一頁
廣告