Jump to content

Ctime: Difference between revisions

From Wikipedia, the free encyclopedia
Content deleted Content added
Y2K was not an event
Undid revision 1071819540 by Seeaver (talk) Remove "See also" linking to pages which have no "ctime" in the name
 
(26 intermediate revisions by 15 users not shown)
Line 1: Line 1:
in computer [[programming language]]s '''CTime''' or '''ctime''' may refer to:
{{lowercase|title=ctime}} ''For the c++ library <ctime>, see [[time.h]]''


* <code>ctime()</code>, a function in the ISO C standard library defined in the <code>[[time.h]]</code> standard header
In [[computing]], '''ctime''' is the number of seconds since 0:00:00 [[January 1]], [[1970]] [[UTC]]. Commonly stored as a 32 bit signed [[integer (computer science)|integer]], this number is used for pinpointing dates in many [[computer]]s and [[operating system]]s, such as [[Linux]] and [[Unix|UNIX]] variants, as well as some [[programming language]]s. For example, the function ctime() was included in [[ANSI C]]. It will [[arithmetic overflow|overflow]] in [[2038]] and cause the [[year 2038 problem]]; some expect this will be a profitable non-event similar to [[Y2K]].
* <code><nowiki><ctime></nowiki></code> is a standard header file for C++, equivalent to the C standard library header, <code><[[time.h]]></code>
* <code>st_ctime</code>, a member of the [[stat (Unix)|stat]] structure specifying the last [[inode]] change time of a file in a Unix-like filesystem
* <code>CTime</code>, a Microsoft [[Active Template Library|ATL]]/[[Microsoft Foundation Class Library|MFC]] class for handling dates and times
* <code>CTime</code>, a datatype in the [[Haskell (programming language)|Haskell]] programming language corresponding to the C time_t type
* <code>Time::CTime</code>, a [[Perl module]] for interfacing with POSIX asctime


{{disambiguation}}
To determine the current '''ctime''' on a UNIX system, issue the command "<code>date +%s</code>".

'''ctime''' is also a [[Unix]] library call which returns the local time as a human readable [[ASCII]] string.

'''ctime''' in a [[Unix]] [[filesystem]] is a [[file]] attribute which tells when the file's [[inode]] was last modified. See: [[Stat (Unix)]].

==See also==
*[[Stat (Unix)]]
*[[Unix time]]
*[[Year 2038 problem]]

{{unix-stub}}

[[de:Unixzeit]]
[[pl:Ctime]]

Latest revision as of 08:04, 21 February 2022

in computer programming languages CTime or ctime may refer to:

  • ctime(), a function in the ISO C standard library defined in the time.h standard header
  • <ctime> is a standard header file for C++, equivalent to the C standard library header, <time.h>
  • st_ctime, a member of the stat structure specifying the last inode change time of a file in a Unix-like filesystem
  • CTime, a Microsoft ATL/MFC class for handling dates and times
  • CTime, a datatype in the Haskell programming language corresponding to the C time_t type
  • Time::CTime, a Perl module for interfacing with POSIX asctime