VI of the Day (8/21/09)

Inspired by a recent thread, it seems like a good day to explore how LV keeps track of time.  The function for today is "Date/Time to Seconds". 
You can find several interesting discussions on time by searching the forum (one of the most important LV skills you should master).
Why the heck 1904?  Is there a major problem looming in 2100, the Y2.1K bug?  Perhaps there is an earlier problem, when does the current system fail?
Can you pass timestamps to Excel and get the right date/time to show up?

Darin.K wrote:
Inspired by a recent thread, it seems like a good day to explore how LV keeps track of time.  The function for today is "Date/Time to Seconds". 
You can find several interesting discussions on time by searching the forum (one of the most important LV skills you should master).
Why the heck 1904?  Is there a major problem looming in 2100, the Y2.1K bug?  Perhaps there is an earlier problem, when does the current system fail?
Can you pass timestamps to Excel and get the right date/time to show up?
For Mega-Kudos*
Develop and post a VI for use by the community that will;
Given the current time return the of the time that represents the same time on the next calendar day.
To qualify the VI should;
Handle daylight savings time.
If the time today does not exist on the next day, it should coerce the time to following hour.
Notes:
Not all days have 24 hours. One has 23 and another has 25.
US Congress can change its time and time it minds** so the code can NOT assume DST will be the same in the future as it is now.
Did I miss any other rules or "gotchas"?
 Ben
* Well maybe not Mega-Kudos but at least deca-Kudos.
** No that is worded the way I intended.
Message Edited by Ben on 08-21-2009 12:39 PM
Ben Rayner
I am currently active on.. MainStream Preppers
Rayner's Ridge is under construction

Similar Messages

  • In ical, only since the update, when I look at the day view, I can no longer scroll down indefinitely; it stops at one day only

    Since the update, when I use ical , and am on the day view, I no longer can scroll down through multiple days; it stops at one day only. Seems like a poor design change. Any idea how to reverse this?

    cfromflorida,
    Try swiping left/right works for me.

  • HT4743 Why isn't episode 5 of Rizzoli&Isles available on iTunes Store yet ? It's usually available the day after it have been aired. Ep 5 was aired tuesday 23rd, but is still not possible to watch in iTunes..

    Hi,
    Why isn't episode 5 of Rizzoli&Isles available on iTunes Store yet ? It's usually available the day after it's aired. Ep 5 was aired tuesday 23rd, but is still not possible to watch in iTunes..
    Thanks,
    Rennuss

    Ask the content provider.

  • HT201365 I just I just updated to iOS 7 and now my calendars are not keeping the information on the days that should be marked.  The info is there in my iCloud on my computer, just not on the iPhone.  Has anyone had the same problem and what can I do abou

    I just update to iOS 7 on my iPhone 4s. The calendars on my iPhone are not keeping the information on the days that should be marked.  The info is there in my iCloud on my computer, just not on my phone.   Has anyone else had the same problem and what can I do about it?  Is it at bug in the iOS 7 update?

    What do you mean by "on the days that should be marked"?  Are you calendar events displayed on the wrong days?

  • My Wifi Button has been dimmed for nearly 2 months now, It started the day of purchase this summer. I reset the phone, and it is still not working. Help, please?

    Hi, Apple community! This summer, I dropped my phone in the water. Due to that incident, I got a new iPhone. Same one, it is an iPhone 4s. On the day of purchase of the new one, I came across a very bad problem... My home WiFi disabled my iPhone's connection, therefore not letting me to use any WiFi-making my 4G Data plan payments sky rocket(I use my phone a lot while I am on the go). After 3 weeks, I realized there was nothing I can do about it. I contacted Apple for help, and I was assisted by a kind gentleman named "Christopher". He went into detail with the problem I was coming across, and he gave me a list of ways to solve it. Unfortunately, after many tries, I was not able to solve my problem. So, today, I am contacting you guys to see if you know about this issue. Oh, and I forgot to mention, I have upgraded to i.O.S.7 just this morning, at around 11:57 to 1 AM (EST). Even then, nothing is working. I am looking into scheduling an appointment with a local Apple Genius bar. What should I do? Should I just take the phone into a Genius bar, or is there any other way of resolving this?

    my money is on a hardware issue

  • Macbook (mid 2012, 9,2) has very poor performance since the day I bought it (less than 2 months ago)

    Problem description:
    My macbook is extremely slow since the day I bought it (which was less than 2 months ago)…Came preinstalled with Mavericks and 4GB of RAM. Upgraded it to 16GB hoping that would help, but that did very little…then upgraded to Yosemite. That just made it worse. Formatted the whole thing and installed clean Yosemite. Still, every time I right click, I get the rainbow loading icon and it hangs. Every time I open any file, or click any app, it hangs for a few seconds, again with a loading icon. Every time I play a song on iTunes or even VLC for that matter, it stops multiple times, every few seconds. Feels like it’s “buffering” while I’m playing a song off my hard drive. It’s been bothering me for too long now…Any idea what the issue is exactly?
    EtreCheck version: 2.0.11 (98)
    Report generated 12 November 2014 23:55:47 GMT-3
    Hardware Information: ℹ️
      MacBook Pro (13-inch, Mid 2012) (Verified)
      MacBook Pro - model: MacBookPro9,2
      1 2.5 GHz Intel Core i5 CPU: 2-core
      16 GB RAM Upgradeable
      BANK 0/DIMM0
      8 GB DDR3 1600 MHz ok
      BANK 1/DIMM0
      8 GB DDR3 1600 MHz ok
      Bluetooth: Good - Handoff/Airdrop2 supported
      Wireless:  en1: 802.11 a/b/g/n
    Video Information: ℹ️
      Intel HD Graphics 4000 -
      Color LCD 1920 x 1080
      LCD TV spdisplays_1080p
    System Software: ℹ️
      OS X 10.10 (14A389) - Uptime: 2 days 10:0:44
    Disk Information: ℹ️
      APPLE HDD TOSHIBA MK5065GSXF disk0 : (500.11 GB)
      S.M.A.R.T. Status: Verified
      EFI (disk0s1) <not mounted> : 210 MB
      Recovery HD (disk0s3) <not mounted>  [Recovery]: 650 MB
      Macintosh HD (disk1) /  [Startup]: 498.88 GB (374.54 GB free)
      Core Storage: disk0s2 499.25 GB Online
      MATSHITADVD-R   UJ-8A8 
    USB Information: ℹ️
      SIGMACHIP USB Keyboard
      Apple Inc. FaceTime HD Camera (Built-in)
      Apple Inc. BRCM20702 Hub
      Apple Inc. Bluetooth USB Host Controller
      Apple Inc. Apple Internal Keyboard / Trackpad
      Apple Computer, Inc. IR Receiver
    Thunderbolt Information: ℹ️
      Apple Inc. thunderbolt_bus
    Configuration files: ℹ️
      /etc/hosts - Count: 6
    Gatekeeper: ℹ️
      Anywhere
    Kernel Extensions: ℹ️
      /Library/Application Support/VirtualBox
      [loaded] org.virtualbox.kext.VBoxDrv (4.3.18) Support
      [loaded] org.virtualbox.kext.VBoxNetAdp (4.3.18) Support
      [loaded] org.virtualbox.kext.VBoxNetFlt (4.3.18) Support
      [loaded] org.virtualbox.kext.VBoxUSB (4.3.18) Support
    Startup Items: ℹ️
      TuxeraNTFSUnmountHelper: Path: /Library/StartupItems/TuxeraNTFSUnmountHelper
      Startup items are obsolete and will not work in future versions of OS X
    Launch Agents: ℹ️
      [not loaded] com.adobe.AAM.Updater-1.0.plist Support
      [running] com.teamviewer.teamviewer.plist Support
      [running] com.teamviewer.teamviewer_desktop.plist Support
    Launch Daemons: ℹ️
      [loaded] com.macpaw.CleanMyMac2.Agent.plist Support
      [loaded] com.microsoft.office.licensing.helper.plist Support
      [loaded] com.teamviewer.Helper.plist Support
      [running] com.teamviewer.teamviewer_service.plist Support
      [not loaded] org.virtualbox.startup.plist Support
    User Launch Agents: ℹ️
      [loaded] com.adobe.ARM.[...].plist Support
      [loaded] com.google.keystone.agent.plist Support
      [loaded] com.macpaw.CleanMyMac2Helper.diskSpaceWatcher.plist Support
      [loaded] com.macpaw.CleanMyMac2Helper.scheduledScan.plist Support
      [loaded] com.macpaw.CleanMyMac2Helper.trashWatcher.plist Support
      [not loaded] org.virtualbox.vboxwebsrv.plist Support
    User Login Items: ℹ️
      iTunesHelper Application (/Applications/iTunes.app/Contents/MacOS/iTunesHelper.app)
      Dropbox Application (/Applications/Dropbox.app)
    Internet Plug-ins: ℹ️
      AdobePDFViewerNPAPI: Version: 11.0.0 - SDK 10.6 Support
      SharePointBrowserPlugin: Version: 14.4.5 - SDK 10.6 Support
      AdobePDFViewer: Version: 11.0.0 - SDK 10.6 Support
      QuickTime Plugin: Version: 7.7.3
      AdobeAAMDetect: Version: AdobeAAMDetect 1.0.0.0 - SDK 10.6 Support
      Default Browser: Version: 600 - SDK 10.10
    3rd Party Preference Panes: ℹ️
      Tuxera NTFS  Support
    Time Machine: ℹ️
      Time Machine not configured!
    Top Processes by CPU: ℹ️
          20% mds
          6% Google Chrome
          4% WindowServer
          1% hidd
          0% Dropbox
    Top Processes by Memory: ℹ️
      481 MB Coda 2
      258 MB Google Chrome
      189 MB softwareupdated
      189 MB loginwindow
      189 MB Finder
    Virtual Memory Information: ℹ️
      5.71 GB Free RAM
      7.22 GB Active RAM
      2.63 GB Inactive RAM
      1.62 GB Wired RAM
      25.24 GB Page-ins
      0 B Page-outs

    If it has been slow since it came out of the box, it's probably defective. The warranty entitles you to complimentary phone support for the first 90 days of ownership.

  • I have downloaded several books into ibooks.  Started reading one and closed it when I was done reading for the day.  Now I want to access other books and when I open ibooks it goes directly to that first book.  What can I do? Help please.

    I have downloaded several books into ibooks.  Started reading one and closed it when I was done reading for the day.  Now I want to access other books and when I open ibooks it goes directly to that first book.  It does not give me the shelf to choose what book I want to read - goes directly to the first book. What can I do? Help please.

    There should be a Library button on the top left. If not ap the middle of the screen to get it to appear.

  • I recently purchased FaceTime from the Application Store. After approx. ±10 meg, the application resets and starts downloading again. I have tried to download it at different times of the day but with the same results. I have been in contact with Apple su

    I recently purchased FaceTime from the Application Store. After approx. ±10 meg, the application resets and starts downloading again. I have tried to download it at different times of the day but with the same results. I have been in contact with Apple support and have tried different options with the same result. I cannot download a new Version because in my Purchased List the applicaiton (FaceTime) is still there, and because I have halted it it tells me to resume. I can’t, because the same thing is going to happen. I have tried all the various troubleshooting tips supplied by my ISP and also Apple Support with no luck. I am currently working on a IMac OS 10.6.7. Has anybody got any ideas? Any suggestion would help. Thanks

    Amol Soni wrote:
    As I said, I tried everything what the manual says, but hard luck. I have taken an appointment for today, lets see what happens.
    Also there is no activity on unit when I use the remote. The unit is stuck on the first page itself where we have to choose the language. The unit seems to be fine to me but the real problem is remote does'nt have activity. The IR is not responding while pressing any of the button.
    Good luck with your appointment.
    Not much consolation but even new products can have issues and might need a trip to a store to return/replace.
    The reason i asked about the LED on the AppleTV is that occasionally it thinks it's paired with a specific remote and ignores others - the unpair keypress I described is quick and free.
    AC

  • I would like to know how can I set songs in iTunes to play at different times automatically during the day. i.e. one song at 10am the other at 10:30am etc..

    I would like to know how can I set songs in iTunes to play at different times automatically during the day. i.e. one song at 10am the other at 10:30am etc..

  • How do I display more than one month calendar in the day-view?

    iCal has always had a nice feature that allowed me to display little, what I call, mini-month calendars while in the day-view.  This allowed me to quickly jump to a day two or three (or more) months ahead (or behind) to check appointments on that day or set an appointment, without switching out of the day-view.
    The mini-month was a small clickable calendar that looked something like this:
    1   2   3   4   5   6   7
    8   9  10 11 12 13 14
    15 16 17 18 19 20 21
    22 23 24 25 26 27 28
    There was also a forward and backward arrow box [ < ][ > ] that allowed me to quickly scroll to the mini-month to find the day I wanted to click into.  And, if I wanted to give it more room by adjusting the frame, I could display up to three months at a time within my day view.
    Since upgrading iCal to 5.0 with the Lion upgrade, I can no longer display more than the current mini-month calendar on the day view.
    This is REALLY inconvenient.  Now, there is no way (that I know of) for me to stay in the day view and be able to jump ahead to a specific day two or three months out, or even to a day in the NEXT month without either going to the year view (a big waste of time) or click on the last day of the current month and then clicking the ">" day arrow to get to the next day which then shows that month's mini-calendar.
    How do I display more than the current month's mini-month calendar in the day view on Lion?

    Unfortunately you can't do what you want. Many people have complained to Apple about this. I suggest you provide Apple feedback directly at http://www.apple.com/feedback/macosx.html. They will not provide a direct response but hopefully if enough people provide feedback Apple will fix this.

  • Is there any way to enable rSAP, use the iPhone as a modem, create sms folders, and show the day's calender on the home screen?

    Hi folks
    Had iPhone for a while and generally happy, but it seems I still need to keep my old nokia E72 because I cannot seem to use the iPhone as a modem, nor does it support rSAP.
    Also, while I like the threaded sms view, I'd also like the option to create sms folders to stash away my banking sms info, all of which comes from different numbers, and filled the sms inbox with hundreds of messages.
    Lastly, having the meeting for the day diplayed somewhere on the home screen would be great if there were a way to do it. Yes, I can go into calender easy enough, but unless I develop the habit of checking it all the time, I often forget about a meeting whereas on the old nokia, it was always displayed.
    What gives with the lack of flash support? Maybe ol Steve dislikes adobe, but it seems like a serious lack to me. Even the old nokia has some flash support.
    Given that, I must say I love the seperate calenders and contacts. It's great to be able to keep home contacts seperate from work ones, but still have them on the same phone. Email is great two - full html support seems like a given but it works really well.

    rSAP has largely been supplanted by ABAP, which the iPhone supports. Most modern smartphones, including the iPhone do NOT store any information on the SIM.
    SMS inboxes. Not much to say. I've never had a desire to do this. I understand it could be useful, but it's unlikely to change.
    As for meetings on the home screen... Wait for iOS 5
    Flash: it's not JUST that Steve doesn't like flash. Adobe has failed to produce a workable version of Flash for iOS. Blame has to go to both sides.  I say good riddance to it.

  • How can I set a passcode that is only required at certain times of the day. Ie: my child needs access for school use, but don't want her playing iPad in the middle of the night. I cannot identify a way to have the iPad turn off or require a password

    I cannot find a way to enable my child's iPad to require a passcode only at certain times of the day.
    Yes I have used the clock/timer/ countdown - great to restrict how many minutes of iPad usage they get a day.
    But as my child requires the iPad in school for class lessons the usage at school varies maybe 30 mins 1 day and a few hrs on other days
    I want the ability to say set the iPad to not work between say 7pm and 7am, ( unless a passcode is entered) so my child isn't playing games on it in the middle of the night...
    Apple I cannot see anything in the settings that performs this function
    Help

    You can Remote Lock his iPad with Find My iPad using a computer at whatever time you like.
    http://support.apple.com/kb/PH2700
    Note: The iPad may be disabled if he tries the passcode too many times.

  • How do I get the iTunes festival to play on my Apple TV in the evening, as I work during the day and can't watch it at 4:00pm?  I have the app installed on my iPad and can't get it to play!

    How do I get the iTunes festival to play on my Apple TV in the evening, as I work during the day and can't watch it at 4:00pm?  I have the app installed on my iPad and can't get it to play!

    I haven't received an answer. I hope someone can answer this because it's an ongoing problem that I can't play some CDs on my MacBook Air (see my original post for the details). Anyone? Please? Thanks in advance!

  • Why do my events change in the day view, when I create a new event? (iCal for iPad 2)

    Every time I create a new event in the day view in iCal on iPad, the other events (which I created before for the same day) change their starting and/or their ending time.
    Please help!

    monkeyde,
    You are getting entagled in the two confusing meanings of the term pixels, namely as a unit identical to points and equalling 1/72 inch, and the basic component of raster images (and effects).
    You can read on in this very recent thread:
    Is there a way to get Illustrator to know how many pixels are in an inch?

  • ICal shows "ee" for the day in detail menu

    When I try to create a new event, iCal doesn't allow me to change settings on the day, instead filling the day placeholder with "ee" (example: 2011-05-ee).
    The values for year and month can be changed and making a simple day event appears correctly in the iCal "month" view.
    However, I cannot set events with a time span of more than 1 day.
    This being said, iTunes also messes up import and last-played dates (approx. 2 weeks late).
    The clock in System Preferences adjusts correctly, though.
    Anybody else have this issue?

    Hi,
    You can change this in System Preferences, Language & Text.
    Go to System Preferences > Language & Text > Formats tab and change where it says Custom to your location. Then re-open iCal.
    Best wishes
    John M

  • Day of the week and the day of the month out of sync

    I'm not sure this is the right forum to post this, so I apologize in advance.
    When I open iCal on my iPhone 4 in day view I see Oct 29 with a W for Wednesday on top of it although below the days of the month it reads: Tuesday, October 29, 2013.
    Is anyone experiencing this problem? Any solution?
    TIA

    Thanks for replying, ChrisJ4203. It's defintely a problem with Brazilian users. Here's a workaround a countryman posted:
    I've managed to fix it:
    Go to Settings / Mail Contacts and Calendars / Start the week on
    Change from Sunday to Monday.
    It appears people in Brazil are the only ones affected.
    It's a good work-around  while apple does not fix this bug.
    Mesmo problema aqui. Como consertar:
    Ajustes / Mail contatos e calendários / Iniciar a semana em:
    Mude de "Domingo" para "Segunda"
    Parece que somente pessoas no Brasil foram afetadas.
    É uma boa forma de contornar enquanto a Apple não repara a bug.
    iPhone 5 - iOS 7.0.3

Maybe you are looking for

  • Visual Studio takes long time to start up

    When starting Visual Studio on my machine it used to take a few seconds to start up and be ready to either open or create a new project. Recently however I am finding that it is hanging - stuck on "Updating the News Channel"  and "Connecting to " Vis

  • Tax code problem in Vendor clearing

    Hello, We have used Tax code V0 for zero input tax in vendor down payment as of zero tax . But due to some error problems tax code T0 got corrupted . We have created new tax code V0 , Made changes according to it in transaction OBCL . But now while v

  • Epson R3000 media mismatch error

    Hi, I've loaded two types of fine art paper in the front media tray of my Epson R3000 and selected the paper type in the print settings that match the size of the paper (eg. A4 Fr.-Fine Art(Borderless- Retain Size)).  I've then chosen the relevant Ep

  • Credit Management and LC

    Hi All, While creating the sales order client requires that system should consider LC document and Payments from the customer in order to execute the delivery processing. Is it possible?????????????? For Example, LC amount 42000 US$ Payment    4000  

  • Why does the iPhone ship from China?

    I've been reading many people's posts about their iPhone shipping from China. Mine is shipping from Kentucky. Apple is an American company, so how does that work?