Эта статья о формате кодирования времени; об утилите см.: time (Unix).
Для термина «Time» см. другие значения.
UNIX-время или POSIX-время (англ. Unix time) — система описания моментов во времени, принятая в UNIX и других POSIX-совместимых операционных системах.
Моментом начала отсчёта считается полночь (по UTC) с 31 декабря 1969 года на 1 января 1970 года, время с этого момента называют «эрой UNIX» (англ. Unix Epoch).
Время UNIX согласуется с UTC, в частности, при объявлении високосных секунд UTC соответствующие номера секунд повторяются.
Способ хранения времени в виде количества секунд очень удобно использовать при сравнении дат (с точностью до секунды), а также для хранения дат: при необходимости их можно преобразовать в любой удобночитаемый формат. Дата и время в этом формате также занимают очень мало места (4 или 8 байтов, в зависимости от размера машинного слова), поэтому его разумно использовать для хранения больших объёмов дат. Недостатки в производительности могут проявиться при очень частом обращении к элементам даты, вроде номера месяца и т. п. Но в большинстве случаев эффективнее хранить время в виде одной величины, а не набора полей.
Чтобы узнать текущее UNIX-время в большинстве UNIX-подобных систем, можно использовать команду date +%s.
10 января 2004 года в 13:37:04 по GMT значение UNIX-времени достигло значения в 1073741824=230 секунд или в одну Гигасекунду.
13 февраля 2009 года в 23:31:30 по UTC (02:31:30 14 февраля по MSK) значение UNIX-времени достигло 1234567890 секунд.
13 марта 2011 года в 7:06:40 по GMT (10:06:40 13 марта по MSK) значение UNIX-времени будет равно 1300000000 секунд.
19 января 2038 года в 03:14:08 по всемирному времени значение переменной типа time_t, отсчитывающей число секунд, прошедших с 1 января 1970 года, достигнет 231, что может привести к ошибочной интерпретации этого числа как отрицательного. Возможное решение данной проблемы состоит в использовании не 32-битной, а 64-битной переменной для хранения времени (что и делается во всех современных 64-битных операционных системах), чего хватит ещё на 300 миллиардов лет.
Источник: ru./wiki/UNIX-время
Другие работы по теме:
Выход в большой сетевой мир
Летом 1990 года начала действовать общедоступная компьютерная сеть Relcom. Поначалу это была небольшая по масштабам сеть, объединившая разработчиков и пользователей отечественных Unix-систем.
Операционные системы Unix и Windows NT
Сущность и принцип работы операционной системы, правила и преимущества ее использования. Возможности различных операционных систем, их сильные и слабые стороны. Сравнительная характеристика систем Unix и Windows NT, их потенциал и выполняемые задачи.
Деннис Ритчи - автор языка С. Кто он сейчас?
Язык Си - это один из универсальных языков программирования высокого уровня, который считается языком системного программирования. Он удачно сочетает в себе свойства и средства языков высокого и низкого уровней.
Считаем время выполнения скрипта
Вы наверняка замечали на некоторых сайтах внизу страницы надпись, что мол скрипт выполнен или страница создана за столько-то секунд. И сейчас мы сделаем это средствами PHP.
Инструменты необходимые для тестирования Linux
Данная статья представляет из себя набор тех утилит, с которыми приходится сталкиваться QA инженеру при тестировании linux/unix подобных таргетов. Здесь описаны лишь некоторые, основные инструменты, с которыми Вам наверняка придется работать.
Файловая система Unix
Иерархическая структура файловой системы Unix. Согласованная обработка массивов данных, возможность создания и удаления файлов, буферный кэш. Защита информации, трактовка периферийных устройств как файлов. Внутренняя структура файловой системы Unix.
Виды программного обеспечения, операционной система
Среди множества прикладных программ -- общего назначения и специализированных -- мы выбираем те, что помогут выполнить нужную нам работу. Но есть программа, без которой компьютер вообще не сможет работать.
Права доступу до файлів в ОС Unix
Міністерство освіти України Львівський державний університет ім. І. Франка Факультет прикладної математики та інформатики Звіт про виконання практичного завдання з курсу
Linux Essay Research Paper Introduction TOPIC
Linux Essay, Research Paper Introduction ? TOPIC: Can Linux succeed in a Windows world? Linux is a Unix-language-based computer platform and is described as being slimmer, faster, more reliable
Telnet Essay Research Paper TelnetPURPOSE OF THIS
Telnet Essay, Research Paper Telnet PURPOSE OF THIS REPORT Before gophers, hypertext, and sophisticated web browsers, telnet was the primary means by which computer users connected their machines with other
Hacking Essay Research Paper In the following
Hacking Essay, Research Paper In the following file, all references made to the name Unix, may also besubstituted to the Xenix operating system. Brief history: Back in the early sixties, during the development of thirdgeneration computers at MIT, a group of programmers studying the potential ofcomputers, discovered their ability of performing two or more taskssimultaneously.
Hacking Essay Research Paper Imagine this you
Hacking Essay, Research Paper Imagine this, you are driving along the road and suddenly you see something spectacular. Now imagine that you are not allowed to deviate from your course to
History Of The Internet Essay Research Paper
History of the Internet The Internet as we know today was not a concept that was quickly enacted when it was first thought up. It was a revolutionary process that was the result of visionary people who painstakingly brought forth the World Wide Web. These individuals saw a promising potential in allowing computers to share information on research and development in scientific and military fields.
Linux Vs Nt Essay Research Paper Comparing
Linux Vs Nt Essay, Research Paper Comparing any network operating system is really like comparing an apple to an orange. To judge between the underlying functionality of each operating system geared towards different networking environments is too broad of a subject to come to a reasonable conclusion.
Programming Under The Wizard
’s Spell Essay, Research Paper The computer is a tool that has become indispensable to the modern family and company. In flourishing so successfully the computer has passed from incredibly complex and unusable to anyone
Dennis Ritchie Essay Research Paper Overview
Dennis Ritchie Essay, Research Paper Overview While at AT&T Bell Laboratories, Dennis Ritchie, along with Ken Thompson, developed the UNIX computer operating system for minicomputers.
Operating Systems Essay Research Paper Operating Systems
Operating Systems Essay, Research Paper Operating Systems An operating system is the program that manages all the application programs in a computer system. This also includes managing the input and output devices, and assigning system resources.
The Computer Mouse Essay Research Paper The
The Computer Mouse Essay, Research Paper The Computer Mouse The computer mouse is a common pointing device, popularized by its inclusion as standard equipment with the Apple Macintosh. With the rise in
Asynchronous Transfer Mode Networking Atm Essay Research
Paper Asynchronous Transfer Mode (ATM) Networking Asynchronous Transfer Mode (ATM) is, and will be for many years to come, the top of the line in networking technology. Since the creation of the Network (the ARPAnet (Advanced Research Project Agency Network)) scientists and engineers have strived to achieve the fastest information exchange speeds combined with the most cost-efficient hardware and software.
Pbs Essay Research Paper PROCESS BASED SECURITY
Pbs Essay, Research Paper PROCESS BASED SECURITY, WHAT IS IT AND HOW IT WILL CHANGE YOUR COMPUTER?S LIFE This note is for the purpose of explaining a new way to implement operating system security called process-based security. First, an explanation of traditional operating system security is given. Next, an explanation of process-based security is given.
Dhl Migration Essay Research Paper DHL Worldwide
Dhl Migration Essay, Research Paper DHL Worldwide Express migration from legacy system to DBMS Introduction DHL Worldwide Express is the world s largest and most experienced international air express network with service to more than 675,000 destinations in the world. DHL maintains its position as the world s leading international network by continually expanding and upgrading its network of offices, hubs, services, and Information technology, and by offering superior service through a well-trained and dedicated work force with total number of 228 countries, 3002 stations, 63,552 employees, 18,576 vehicles, 252 aircraft, and 35 hubs.
The Old Man And The See Essay
, Research Paper THE HISTORY OF INTERNET In the beginning of the 1970`s in USA was an older military network called ARPANET converted to Internetvork wish was a network between networks. Accept a few Universities
Firewalls Essay Research Paper The term firewall
Firewalls Essay, Research Paper The term firewall has seen limited use since the late 1980s to describe a device to block unwanted network traffic while allowing other traffic to pass. The first published description of a “modern” firewall including use of that name was in ‘Practical Unix Security’ written in 1990 and published in 1991.
Unix The Alpha And The Omega Essay
, Research Paper Since it began to escape from AT&T’s Bell Laboratories in the early 1970’s, the success of the UNIX operating system has led to many different versions: recipients of the (at that time free) UNIX system code all began developing their own different versions in their own, different, ways for use and sale.
Linux And Windows NT Essay Research Paper
Forget the browser wars. This year’s big nerd battle is the server shootout between Linux and Windows NT – and it’s not just a bunch of geeks nit-picking. While both offer more affordable platforms for Web service than in
Current Information Technology Environment Essay Research Paper
Current IT Environment: As a company that will be operating exclusively in the medical field we need to take a look at the predecessors or forerunners to our company to see what IT systems they used to make them successful. Of course we will only use this information as a model to develop and adapt our own model of IT that will be tailor made for our business.
Unix Essay Research Paper UNIX was the
Unix Essay, Research Paper ?UNIX was the first operating system designed to run on ?dissimilar? computers by converting most hardware specific commands in machine language into an independent programming language called ?C,?? Jon Wolfe writes in the Nashville Business Journal. (Wolfe 29) UNIX was the basis of AT&T?s telephone system and the government?s wide area network system.
Where Did UNIX Come From And Why
Are There Different Versions Of UNIX? Essay, Research Paper Where Did UNIX Come From and Why Are There Different Versions Of UNIX? The first efforts at developing a multi-user, multi-tasking operating system
Основні роботи операційної системи UNIX Підтримка мережі UNIX
Основні роботи операційної системи UNIX. Підтримка мережі UNIX В даний час UNIX використовується на найрiзноманiтнiших апаратних платформах – вiд персональних робочих станцiй до потужних серверiв з тисячами користувачiв. Це пов’язано з тим, що UNIX – багатозадачна багатокористувацька система, що володiє широкими можливостями.