簡體   English   中英

time.h 庫默認函數 C++

[英]time.h library default functions C++

我想知道 localtime() function 是否適用於 Linux? 我雖然有另一個命令,但我現在不記得了

顯然我的作業必須在 linux 上工作,否則它不計分,我父母不知道如何使用它

根據這個localtime() 應該可以與 Linux 完美配合。

從鏈接:

    #include <time.h>
    //...
    struct tm *localtime(const time_t *timep);
    struct tm *localtime_r(const time_t *timep, struct tm *result);

如果該聲明與您要詢問的 localtime() 相同(我認為是),那么您應該可以在基於 Linux 的機器上使用它。

localtime() function 適用於 Linux。 檢查參考here

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM