Talk:C date and time functions: Difference between revisions

Content deleted Content added
No edit summary
Tags: Mobile edit Mobile web edit
Cewbot (talk | contribs)
m Maintain {{WPBS}} and vital articles: 1 WikiProject template. Create {{WPBS}}. Keep majority rating "Start" in {{WPBS}}. Remove 1 same rating as {{WPBS}} in {{WikiProject C/C++}}.
 
(4 intermediate revisions by 4 users not shown)
Line 1:
{{Talk header}}
{{WikiProject C/C++banner shell|class=Start|importance=High|c=yes}}
{{WikiProject C/C++|importance=High|c=yes}}
{{IEP assignment|course=Wikipedia:India Education Program/Courses/Fall 2011/Data Structures and Algorithms|university=College Of Engineering Pune|term=2011 Q3}}
}}
 
The information is also incomplete. It only discusses those functions that deal with second precision. I came here hoping to find useful information for micro- or nanosecond double values, not merely int equivalents.
 
== This is not C documentation ==
Wikipedia is not C documentation.
Line 55 ⟶ 53:
 
: Second, I never claimed the void cast to be required — I wrote ''should'', indicating its optional nature. Such void casts are deemed to be a good practice, because just by glancing at code you can easily tell which calls′ return values are ignored. It is a heavily used (by industry, yeah) convenience technique of the same order as prefixing struct/union member names with struct/union′s shortened name, for example:
<sourcesyntaxhighlight lang="c">struct iovec {
void *iov_base;
size_t iov_len;
};</sourcesyntaxhighlight>
: But okay, your point here is reasonable, so let′s keep the cast out and leave it to industry. I agree with your compilation and invocation point too — I tend to forget that non-UNIX operating systems exist, my bad.
 
Line 88 ⟶ 86:
:(With that said, [[Posix]] requires that <tt>time_t</tt> not reflect leap seconds, which is one reason most implementations don't.)
: [But with that said, I believe that computer systems could handle leap seconds much more cleanly ''if'' <tt>time_t</tt> did explicitly reflect leap seconds, but that's another story.] —[[User:scs|Steve Summit]] ([[User talk:scs|talk]]) 16:20, 17 November 2015 (UTC)
== Completeness ==
The information is also incomplete. It only discusses those functions that deal with second precision. I came here hoping to find useful information for micro- or nanosecond double values, not merely int equivalents. <!-- Template:Unsigned --><small class="autosigned">—&nbsp;Preceding [[Wikipedia:Signatures|unsigned]] comment added by [[User: 71.179.41.98| 71.179.41.98]] ([[User talk: 71.179.41.98#top|talk]] • [[Special:Contributions/ 71.179.41.98|contribs]]) </small>
 
:New topics go at the bottom of the talk page. Each topic should have its own title. Each comment should be signed by placing 4 tilde characters at the end (ie <nowiki>~~~~</nowiki>).
 
:This page covers all the functions of the ''standard'' C library. The standard C library only goes down to seconds. Anything more precise is handled by extensions or alternatives to the standard C library and is therefore not meant to be covered in this article. <span style="border:1px solid blue;border-radius:4px;color:blue;box-shadow: 3px 3px 4px grey;">[[User:Stepho-wrs|'''&nbsp;Stepho&nbsp;''']]&nbsp;<span style="font-size:xx-small; vertical-align:top">[[User Talk:Stepho-wrs|talk]]&nbsp;</span></span> 20:43, 22 April 2020 (UTC)
 
== India Education Program course assignment ==
[[File:Wikipedia-Ambassador-Program-Logo.png|50px]] This article was the subject of an educational assignment at College Of Engineering Pune supported by [[Wikipedia:Education program/Ambassadors|Wikipedia Ambassadors]] through the [[Wikipedia:India Education Program|India Education Program]]&#32;during the 2011 Q3 term.&#32;Further details are available [[Wikipedia:India Education Program/Courses/Fall 2011/Data Structures and Algorithms|on the course page]].[[Category:India Education Program student projects, 2011 Q3|{{PAGENAME}}]] [[Category:India Education Program student projects]]
 
{{small|The above message was substituted from {{tlc|IEP assignment}} by [[User:PrimeBOT|PrimeBOT]] ([[User talk:PrimeBOT|talk]]) on 20:07, 1 February 2023 (UTC)}}