Administration
  Home arrow Administration arrow Page 4 - UNIX Time Format Demystified
Dev Shed Forums  
Administration  
AJAX  
Apache  
BrainDump  
DHTML  
Flash  
Java  
JavaScript  
Multimedia  
MySQL  
Oracle  
Perl  
PHP  
Practices  
Python  
Reviews  
Security  
Smartphone Development  
Style-Sheets  
Web Services  
XML  
Zend  
Zope  
Mobile Linux  
App Generation ROI  
IBM® developerWorks  
Forums Sitemap  
E-Commerce Hosting  
Linux Web Hosting  
Managed Hosting  
Small Business Hosting  
VPS Hosting  
Weekly Newsletter

 
Developer Updates  
Free Website Content 
 RSS  Articles
 RSS  Forums
 RSS  All Feeds
Write For Us Get Paid  
Request Media Kit
Contact Us  
Site Map  
Privacy Policy  
Support  
 USERNAME
 
 PASSWORD
 
 
  >>> SIGN UP!  
  Lost Password? 
ADMINISTRATION

UNIX Time Format Demystified
By: Barzan "Tony" Antal
  • Search For More Articles!
  • Disclaimer
  • Author Terms
  • Rating: starstarstarstarstar / 3
    2008-04-29


    Table of Contents:
  • UNIX Time Format Demystified
  • The Theory
  • Conversion Examples
  • Final Thoughts

  • Rate this Article: Poor Best 
      ADD THIS ARTICLE TO:
      error-file:tidyout.log Del.ici.ous error-file:tidyout.log Digg
      error-file:tidyout.log Blink error-file:tidyout.log Simpy
      error-file:tidyout.log Google error-file:tidyout.log Spurl
      error-file:tidyout.log Y! MyWeb error-file:tidyout.log Furl
    Email Me Similar Content When Posted
    Add Developer Shed Article Feed To Your Site
    Email Article To Friend
    Print Version Of Article
    PDF Version Of Article

     
     
    ADVERTISEMENT


    UNIX Time Format Demystified - Final Thoughts
    ( Page 4 of 4 )

    We’ve come to the end of this article. On these pages, I’ve shown you how to work with UNIX timestamps. Most importantly, we’ve demystified this concept. Those long strings of digits are all around us and some people haven’t a clue how the heck they can represent a date when they seem silly and sometimes even random.

    It’s really important to understand the mathematical theory that lies within UNIX timestamps, because if we have a strong grasp on it, we can do the conversions ourselves—even by hand on a sheet of paper with a pen. Of course, we can also write our own convert functions in any programming language.

    (Image Courtesy of Softpedia)

    After we learned the UNIX timestamps, we moved on to some practical real-world examples. Basically, you found lots of conversion implementations in various programming languages (even shell scripting). I explained the code samples and we also examined the syntax of the functions we opted to use.

    Should you have more questions or uncertainties, don’t hesitate to join the Dev Hardware Forums. It’s an ever-growing place with a very friendly and professional community made up of lots of technology experts and enthusiasts. Our focus lies mostly on hardware, software, and consumer electronics.

    You may want to also check out the communities of our sister sites, such as the Dev Shed Forums and ASP Free Forums.

    I hope that you’ve found this article informative and educational. Hopefully, you won’t be scared away the next time you notice a long string of digits representing a date, and you won’t think that the “coder” who is mumbling about dates is insane. On top of this, you learned how to convert plain English-like dates (along with times) back and forth to UNIX time.



     
     
    >>> More Administration Articles          >>> More By Barzan "Tony" Antal
     

       

    ADMINISTRATION ARTICLES

    - Network Booting via PXE: the Basics
    - Scalix: Linux Administrator`s Guide
    - Network Administration with FreeBSD 7
    - Components of an Information Architecture
    - The Anatomy of an Information Architecture
    - Configuring Load-Balanced Clusters
    - Load-Balanced Clusters
    - UNIX Time Format Demystified
    - Making Changes in the CVS
    - Building Your First CVS Repository
    - CVS Quickstart Guide
    - Authorizing Users in Samba
    - Handling User Accounts in Samba
    - Authentication in Samba
    - Accounts, Authentication, and Authorization





    © 2003-2009 by Developer Shed. All rights reserved. DS Cluster 4 Hosted by Hostway
    Stay green...Green IT