What's with 12AM Friday January 01, 1904?

For those of you who don't know, LabVIEW keeps track of time elapsed since 12AM January 01, 1905 in order to calculate the current date and time in seconds.  I can understand the January 1st part, and the 12AM part, since is marks the beginning of a new year, but why 1904?  Why not 1905, or 1923?  Or better yet, going with the whole beginning of a new year, why not make it the beginning of a new century also, and pick 12AM, January 01, 1900?  Has anybody ever heard of a good reason for picking this day and time to start counting seconds?
~Jo-Jo

Here's the deal with January 1, 1904. Most (all?) operating systems store time as the number of seconds ( or microseconds, etc.) since a certain time. This time is call the epoch. The number of seconds that the Mac could store covered about 130 years. The programmers wanted the system to be able to cover the birthdays of most users, so the epoch needed to start in the early 20th century. So why not start at January 1, 1900?
The Macintosh designers needed to squish a lot of code into a very small amount of ROM/RAM. They were looking for any kind of tweak that could save them some room. The code to turn the number of seconds since the epoch into a date (like March 29, 1973) needs to know how many days there are in a year. Which means you need code to determine if a year is a leap year.
A year is a leap year if it is a multiple of 4 unless it is a multiple of 100 except if it is also a multiple of 400. So, 1900 wasn't a leap year (multiple of 100), but 2000 was (multiple of 100, but also a multiple of 400). By avoiding the year 1900, the Mac designers never had to worry about the 100/400 part of the leap year rule (because the 130 year span would only cover 2000 which was a leap year). If the year was a multiple of 4, it was a leap year.
So why not 1901 or 1902 or 1903? By starting with a leap year they didn't need an 'offset', just another way to save a little bit of space.
And since LabVIEW started on the Mac, it inherited some of those quirks.
Today the Mac doesn't use the 1904 epoch, but LabVIEW still does. NI needs a cross-platform epoch and a standard doesn't exist so January 1, 1904 is as good as any.
Pat

Similar Messages

  • When I try powering up my phone it stays on the logo screen for a few seconds then turn off, whats wrong with it?

    When I try to power up my iphone 4 32g, it will stay on the apple screen for a few seconds then turn off. even when I try connecting it to my computer it turns on for a few seconds then turns off. Whats wrong with it? and what do I do about it?

    Have you tried charging it with another known working USB sync cable?  After letting it sit to "charge" for at least 30 minutes, have you tried resetting the device by pressing and holding both the Select/Center and Menu buttons together long enough for the Apple logo to appear.
    B-rock

  • My phone has been asked to be plugged into itunes for the past hour or so, and it has been plugged in the whole time... i have tried holding in both buttons too turn it on and nothing is happening... whats wrong with it and how do i fix this :(?

    My phone has been asked to be plugged into itunes for the past hour or so, and it has been plugged in the whole time... i have tried holding in both buttons too turn it on and nothing is happening... whats wrong with it and how do i fix this :(?

    Does iTunes see your phone?
    Do you have a PC or a Mac?
    ~Lyssa

  • When i open itunes, it gives me a message "the folder itunes is on a locked disk or you do not have write permissions for this folder" i am the only user and it was working a week ago whats wrong with it? it will not open itunes

    when i open itunes, it gives me a message "the folder itunes is on a locked disk or you do not have write permissions for this folder" i am the only user and it was working a week ago whats wrong with it? it will not open itunes

    Hi lvdmerwe!
    I have two articles here for you that should be able to help you troubleshoot this issue further:
    Trouble adding music to iTunes library or importing audio CD
    http://support.apple.com/kb/ts1387
    iTunes: Missing folder or incorrect permissions may prevent authorization
    http://support.apple.com/kb/ts1277
    Take care, and thanks for visiting the Apple Support Communities.
    -Braden

  • My Screen quit on my ipod nano 6th gen... still syncs to my mac but the screen functions wont work... Whats up with it?

    My Screen quit on my ipod nano 6th gen... still syncs to my mac but the screen functions wont work... Whats up with it?

    Read the PDF user manual for a possible solution:  iPod Manuals and/or iPod Nano Support 
    Every iPod comes with complimentary, single-incident telephone technical support within 90 days of your iPod purchase. 
    If you also purchased AppleCare, then your warranty is extended for technical support and hardware coverage for two years from the original purchase date of your iPod.

  • TS1702 i if use "search" in music on my ipod touch 5th gen the result just show only album and playlist but nothing song result.whats wrong with it?please help

    i if use "search" in music on my ipod touch 5th gen the result just show only album and playlist but nothing song result.whats wrong with it?please help

    The users guide says:
    Spotlight searches the following:
    Contacts—All content
    Apps—Titles
    Music—Names of songs, artists, and albums, and the titles of podcasts and videos
    Podcasts—Titles
    Videos—Titles
    Audiobooks—Titles
    Notes—Text of notes
    Calendar (Events)—Event titles, invitees, locations, and notes
    Mail—To, From, and Subject fields of all accounts (the text of messages isn’t searched)
    Reminders—Titles
    Messages—Names and text of messages
    Try:
    - Reset the iOS device. Nothing will be lost
    Reset iOS device: Hold down the On/Off button and the Home button at the same time for at
    least ten seconds, until the Apple logo appears.
    - Unsynce all music and resync
    - Reset all settings
    Go to Settings > General > Reset and tap Reset All Settings.
    All your preferences and settings are reset. Information (such as contacts and calendars) and media (such as songs and videos) aren’t affected.
    - Restore from backup
    - Restore to factory settings/new iOS device.
    - Make an appointment at the Genius Bar of an Apple store.
    Apple Retail Store - Genius Bar

  • HELP PLEASE - WHATS WRONG WITH THIS CODE

    Hi. I get this message coming up when I try to compile the code,
    run:
    java.lang.NullPointerException
    at sumcalculator.SumNumbers.<init>(SumNumbers.java:34)
    at sumcalculator.SumNumbers.main(SumNumbers.java:93)
    Exception in thread "main"
    Java Result: 1
    BUILD SUCCESSFUL (total time: 2 seconds)
    I am not sure whats wrong with the code. Any assistance would be nice. The code is below.
    package sumcalculator;
    import java.awt.*;
    import java.awt.event.*;
    import javax.swing.*;
    public class SumNumbers extends JFrame implements FocusListener {
    JTextField value1;
    JTextField value2;
    JLabel equals;
    JTextField sum;
    JButton add;
    JButton minus;
    JButton divide;
    JButton multiply;
    JLabel operation;
    public SumNumbers() {
    SumNumbersLayout customLayout = new SumNumbersLayout();
    getContentPane().setFont(new Font("Helvetica", Font.PLAIN, 12));
    getContentPane().setLayout(customLayout);
    value1.addFocusListener(this);
    value2.addFocusListener(this);
    sum.setEditable(true);
    value1 = new JTextField("");
    getContentPane().add(value1);
    value2 = new JTextField("");
    getContentPane().add(value2);
    equals = new JLabel("label_1");
    getContentPane().add(equals);
    sum = new JTextField("");
    getContentPane().add(sum);
    add = new JButton("+");
    getContentPane().add(add);
    minus = new JButton("-");
    getContentPane().add(minus);
    divide = new JButton("/");
    getContentPane().add(divide);
    multiply = new JButton("*");
    getContentPane().add(multiply);
    operation = new JLabel();
    getContentPane().add(operation);
    setSize(getPreferredSize());
    addWindowListener(new WindowAdapter() {
    public void windowClosing(WindowEvent e) {
    System.exit(0);
    public void focusGained(FocusEvent event){
    try {
    float total = Float.parseFloat(value1.getText()) +
    Float.parseFloat(value2.getText());
    sum.setText("" + total);
    } catch (NumberFormatException nfe) {
    value1.setText("0");
    value2.setText("0");
    sum.setText("0");
    public void focusLost(FocusEvent event){
    focusGained(event);
    public static void main(String args[]) {
    SumNumbers window = new SumNumbers();
    window.setTitle("SumNumbers");
    window.pack();
    window.show();
    class SumNumbersLayout implements LayoutManager {
    public SumNumbersLayout() {
    public void addLayoutComponent(String name, Component comp) {
    public void removeLayoutComponent(Component comp) {
    public Dimension preferredLayoutSize(Container parent) {
    Dimension dim = new Dimension(0, 0);
    Insets insets = parent.getInsets();
    dim.width = 711 + insets.left + insets.right;
    dim.height = 240 + insets.top + insets.bottom;
    return dim;
    public Dimension minimumLayoutSize(Container parent) {
    Dimension dim = new Dimension(0, 0);
    return dim;
    public void layoutContainer(Container parent) {
    Insets insets = parent.getInsets();
    Component c;
    c = parent.getComponent(0);
    if (c.isVisible()) {c.setBounds(insets.left+24,insets.top+48,128,40);}
    c = parent.getComponent(1);
    if (c.isVisible()) {c.setBounds(insets.left+256,insets.top+48,128,40);}
    c = parent.getComponent(2);
    if (c.isVisible()) {c.setBounds(insets.left+408,insets.top+48,56,40);}
    c = parent.getComponent(3);
    if (c.isVisible()) {c.setBounds(insets.left+488,insets.top+48,152,40);}
    c = parent.getComponent(4);
    if (c.isVisible()) {c.setBounds(insets.left+128,insets.top+136,72,40);}
    c = parent.getComponent(5);
    if (c.isVisible()) {c.setBounds(insets.left+248,insets.top+136,72,40);}
    c = parent.getComponent(6);
    if (c.isVisible()) {c.setBounds(insets.left+368,insets.top+136,72,40);}
    c = parent.getComponent(7);
    if (c.isVisible()) {c.setBounds(insets.left+488,insets.top+136,72,40);}
    c = parent.getComponent(8);
    if (c.isVisible()) {c.setBounds(insets.left+176,insets.top+48,56,40);}
    }

    Thank you. How do i amend this? I have defined value1though.Yes, you did - but after the call to addFocusListener(...). It needs to be before it.
    BTW, you did the same thing with "value2.addFocusListener(this)" and "sum.setEditable(true)" on the next two lines. You're attempting to call a method on an object that doesn't exist yet (i.e., you haven't called new yet).

  • HT4918 what happen with the documents in Idisk, how can i see them in iCloud?

    what happen with the documents that i have in my idisk?? how can i move them into icloud??

    Welcome to the Apple Community.
    Unfortunately, iCloud does not offer equivalents to Mobile Me’s iDisk, Gallery or Web Hosting services. You will need to find a third party solution to replace these services. You might consider DropBox, SugarSync, MediaFire or any other service that offers online storage. (not all these alternatives offer all the services previously provided by iDisk)

  • I cannot install iTunes updates as of today.  Does anyone have any idea what changed with iTunes?

    The question apparently needs to be typed in twice...  good work.  Here it is again:
    I cannot install iTunes updates as of today.  Does anyone have any idea what changed with iTunes?

    Is this a distinct issue from the 42404?
    If so, are you getting an error message when you try to install iTunes? If so, what does it say? (Precise text, please.)

  • HT2693 Pls Pls Pls Help me my iphone is stucked on conect to itunes its not working , unresponsive,i dont know what happen with my iphone my friends telling me that may be your iphone no jailbreak , but i dont want to make this happen i dont need it.

    Pls Pls Help me >>> i bougt my iphone just 1 years ago,i dont know what happend with my iphone,its unresponsive,showing only connect to itunes ,and when i tried to restore after that messgae came on my laptop that Error 21, could not restore ,,, my friends telling me that may be somebody trying to jailbreak your mobil so this was the reason can happen but i dont want any kind of jailbreak i want my iphone back to my work plss help me i m very poor person i cant efford to buy again this phone

    Anyone have any suggestions? or is everyone else just as clueless as me !

  • What's with underscores starting names?

    This has long baffled me.
    What is with variable names, file names, and method names (those in regards to programming) starting out with an underscore? Is it some scheme of which I'm unaware?
    _print()
    what's that all about??
    why do files often start with underscores?! WHY?!!?

    A convetion used by C programmer were to have something like overloading using _ infront of methods, even two underscores.
    The _ underscore highlights the method as being different.
    It does not conform to the Java Style code convesion but is allowed.

  • What's with the new version of numbers?

    I can't open any of my numbers spreadsheets, and Apple is telling me that to open them that I have to get the latest version for $19.99. What's with this? Is there another alternative?

    I can't open any of my numbers spreadsheets
    How are you trying to open them? What error message are you getting?
    Apple is telling me that to open them that I have to get the latest version for $19.99.
    How is Apple "telling you" you need to pay $19.99?  If you have been using Numbers 2.3 on your Mac, downloading Numbers 3.0 is free.
    SG

  • What's with the non-existant free trial download for Photoshop?

    What's with the non-existant free trial download for Photoshop?  You click on "Download free trial" and it takes you to a page that takes you to a forum… nothing happens.  I've done this about 6 times on two browsers.  Of course, there's no help from Adobe, so I'm trying this forum.  Thanks!

    Thanks very much for a prompt reply!  Much appreciated. Unfortunately, that's exactly the page I was on. And I used both Firefox and Safari and got the same page, with the same nothing...
    As this forum doesn't allow attachments, I'll cut and paste the page here (there's not much):
    Keep learning
    Whether you're new or a pro, we're always making Photoshop better.
    Learn more with these tutorials.
    Get support
    Have any questions? Visit the Learn & Support area for help.
    That's all that's on the page.  No buttons, URLs, menus… nothing.  And just to confirm, the URL  is as you gave: https://creative.adobe.com/products/download/photoshop
    Something's fishy...

  • What's with the micro-pages??

    I understand each of the following:
    1) maximized window
    2) minimized window
    3) tabbed page
    4) custom-sized window
    What I do NOT UNDERSTAND is after Restoring (Maximizing) a Minimized window in Task bar, having to scan desktop for the "micro-page" (in upper LH corner) resulting from Restore command.
    My two (2) questions:
    A) What's with THAT?
    B) What's the FIX?

    Firefox usually tries to remember the size of the last closed "restored" window, so if you stretch the window out to a more normal size and make sure to close that one last, hopefully it will stick.
    If it doesn't stick, one of Firefox's settings files may have become corrupted. Renaming that settings file will cause Firefox to return to its default window sizes and also will clear any toolbar customizations.
    If you would like to try this:
    (1) Open your personal settings (AKA Firefox profile) folder
    Help > Troubleshooting Information > "Show Folder" button
    (2) Switch back to Firefox and exit the program (e.g., Firefox > Exit or File > Exit)
    (3) Wait a few moments for Firefox to finish updating files in your settings folder, then rename '''localstore.rdf''' to something else, like localstore-bad.rdf or localstore.old. Alternately, you can delete the file.
    (4) You're done with your profile folder and you can restart Firefox now.
    Does it solve the window size problem?

  • What's with all of the squares of text that pop up?

    I just bought my first mac in over 4 years. What is with all of the pop ups? I disabled the tool tips in Firefox, but I still get white boxes that pop up at the oddest times. What can I do to disable them? Some of them seem to be connected to Flash Player.
    Thanks in advance for any help you can give me. They're driving me crazy! I'm running Lion.

    Can you tell if these are generated by the browser (i.e. ads or browser-specific tooltips), or are they generated by the operating system or component, such as Java?
    I unfortunately don't have an answer for you, but I am using Safari, and I get random Java po-up windows causing anything full-screen to jump back to normal view, etc.  If you're having the same issues as I am, then I'd be happy to get an answer as well.  I've updated to the latest OS release from Apple, updated my Java, flash, etc.  I'm still getting pop-up windows.  The windows, however, close by themselves.  They pop up for only a second or so, and then close.
    Same issue?

Maybe you are looking for

  • Error while generation of the Authorization object (

    Hi Gurus, I have created a Authorization object Z_CCTR3 for 0costcenter authorization. but getting following error while generation of the Authorization object (type is Flat authorization) "Error occurred when reading the data from DataStore object Z

  • Third party materials to consider in my MRP

    Hi PP Gurus I have next scenario: When manufacturing some products for a specific client, he needs them to be packaged in specific packages materials he is giving to us (say a pallet or a box). So I need to add these materials to my BOM, to a routing

  • Hashtable really thread safe or is there a bug in it ?

    Hashtable is said to be thread-safe, so I think it should be true. So I just want someone to tell me what is wrong with my following observation: I downloaded the source code of jdk 1.3.1 and read the file Hashtable.java, that contains the implementa

  • HT4759 Why is the additional ICloud 10GB storage for my Ipad I purchased not working?

    Why is the additional ICloud 10GB storage I purchased not downloading on my IPAD?

  • INFO record condition

    Dear Experts, While using ME12 for price changes in the info record, when condition tab is clicked then in a pop up window system is bringing two conditions ( PB00) and (a002), then after selecting the PB00 then the rates are changed. But I dont know