File a week old? Stop adding to it. Comparing 2 dates.

I'm creating a file with the date it was first created and I'm adding to it more info everytime my vi is called. I want to stop adding if the file is older than 7 days, any idea how to approach this?
I tried using time stamps but I couldnt get to the index of the day.
Thanks.

thanks for the quick replay!
here is a more detailed description on what I want to achieve:
I will be creating an excel spreadsheet with data. There will be 1 excel spreadsheet for each week of the month (starting Sat at Midnight and finishing saving data after 168 hours on the next Sat at Midnight). Data will be added to the spreadsheet throughout Sat - Sat. Now, lets assume the first spreadsheet file created will happen on Thursday.. how can I tell it to stop saving on Saturday at Midnight and start saving new data to a new, fresh excel spreadsheet?
so basically:
VERY FIRST Data write to the spreadsheet =true?
Create spreadsheet at current time.
ADDITIONAL Data write to the spreadsheet:
See if that file is within SAT-SAT
If it is, keep adding data to it.
If its not, create new spreadsheet.
My issue is that I do not have a constant here. The first spreadsheet could be created on any day of the week.. If i had a constant i could just see if a week has passed from its creation..
I will be working on it and I will keep you updated if i find a solution.
Any help is appreciated!
thanks

Similar Messages

  • Ipod a week old, stops playing, artwork, videos go pink.

    ...pretty much as i have written in the title, got bought a new skin for my ipod, walked..jumped on the bus home..played three songs..then stopped..glitched over which song it was going to play...then suddenly i ouldnt pick any song as it would revert back to menue, all the artwork has turned pink.
    is it worth returning the ipod...or will a full restore reduce the likleyhood of it happening again...it's only a week old, used it all week. not chuffed!

    Hi, Tjblue8!
    Have you tried resetting your iPod? Hold the Menu and Center buttons at the same time for about 5 seconds (maybe more) until the Apple logo pops up.
    Hope this helps!

  • ITunes has stopped adding mp3 files.

    iTunes has stopped adding mp3 files manually via the add file option, this has happened in the last week, it is music I have bought not illegally downloaded. I have the latest software installed, please help, thanks.

    Had the exact same problem and turning off match indeed did fix it.
    Glad Apple has Match working even better than before...

  • Debugging in Flash runs week old file and code

    It seems Flash is caching files somewhere and not properly
    cleaning up. I'll be working just fine for a day, and then suddenly
    I run debug and see a build from a week ago. I clear ASO files to
    no avail. I restart Flash...nope. I can debug and it'll hit my
    breakpoints and STILL run code that is gone, and skip new
    code...it's like phantom has taken over.
    I have to reboot to get this cleared up. I'm running a clean
    install of Leopard, Flash CS3 and all the latest updates.
    Does anyone know anything about this issue?
    Where does Flash/AIR cache debug builds in OS X?
    Any help is much appreciated.
    Dave

    I figured out WHAT was happening, but not WHY.
    When I mounted my MacBook Pro which shared the exact same
    "Project/" directory structure as new my Mac Pro, the Adobe
    debugger would launch files OLD files from the MacBook Pro. ACK! I
    stumbled upon this when rebooting this morning and mounting my
    drive. Unmounted, everything runs as expected. Mounted I get weeks
    old files.
    Why on earth would Flash pull from a different machine like
    that? Is this a Flash issue or a Leopard issue? Who do I need to
    file a bug report with?
    Dave

  • My iMac is only several weeks old and the light on caps lock stopped working any advice?

    My iMac is only several weeks old and the light on caps lock stopped working any advice?

    Hi
    Does the Caps lock still work, just not the LED?
    Or does the caps lock not work at all? You usually have to hold the caps button for 1-2 seconds.
    If the key is indeed faulty, then you should contact Apple, or go to an Apple Retail Store, or Service Provider to have the keyboard replaced

  • I'm trying to share files from my old MacBook - I'm thinking I don't have the proper version of iTunes.  How do I determine the version on my new iPad 2 - 2 weeks old?

    I downloaded iFlashdriveHD, but the appropriate skins don't display.  App asserts I must have iTunes ver. 9.1 or later.  How do I determine what I have on a two week old iPad?
    Just trying to do USB transfers from my black MacBook.

    App asserts I must have iTunes ver. 9.1 or later.
    Where are you seeing this?
    The app is not telling you that you need 9.1 on your iPad.
    It does not use iTunes on the iPad for anything.
    I'm trying to figure the version on my iPad.
    It is the version that comes with your specific iOS firmware version.
    But again, it is irrelevant to the app.
    If you just got the iPad, it (the iPad) requires iTunes 10.4 on your computer.

  • I am missing all emails two weeks old or older in my mac mail. This happens on a continuous basis. I cannot find them by search or any archived method. Can someone please help me stop this from happening?

    Missing emails of two weeks old and older in mac mail.

    Im really good at programming but really suck at algorithms
    >If your are 'really good' at programming, you will be able to solve this problem. Because, it has nothing to do with algorithm.
    >>can someone please please write in a algorithm form for me , i need it by friday i would greatly be thankful for u
    >Wrong person, in the wrong place.

  • HT3728 Why does time capsule every day or so stop backing up? Wifi still seems to work. Time capsule is only a few weeks old and is connected via Ethernet to the router and iMac.

    Why does time capsule go missing from the network. The green light is lit at all times. I am unable to use the software the only thing I can do is power cycle time capsule, by unplugging and plugging the mains back in.
    My time capsule is only a few weeks old, any ideas?
    I am new to apple products very impressed with iPhone 5, I pad, iMac. Really not sure about time capsule!
    Thanks

    An external drive is much more reliable.. the issue has to do with network connection and loss of something.. although I am sorry I cannot tell you exactly what. The computer is still connected, still works on internet but has actually lost the hard disk.. lost and cannot find it without a restart.
    If you want to try a few changes it can help.
    1. If you are connected by ethernet make sure wireless is off in the imac.. having only one network connection is better than two.
    2. Redo the TC setup with all short names.. no spaces.. pure alphanumeric. Apple has these long names with spaces and characters like apostrophe by default but they are not a help.
    3. If the TC is the main router then reduce the dhcp lease time.. make it 20min.. that keeps everything refreshed and up to date.
    None of those fix it but they may help stretch out the interval.

  • 3 week old 80G ipod classic screen stopped working

    My three week old Ipod classic is just showing a blank screen since yesterday afternoon. What do I do with it?
    I tried to find somewhere on the Apple site that would guide me but it is really hard to find help.
    Has anyone here had a similar problem?

    Perhaps you should take it back to an Apple Store if possible, to have it checked.

  • Mac adds automatically a suffix when downloading a file. How to stop the Mac from doing this?

    I want to download a gps-file for my tomtom navigation system.
    These files have the suffix .itn
    When downloading, OS X transforms the file from filename.itn  to   filename.itn.txt automatically, therefore adds an ".txt", and opens the texteditor with the file.
    I just want OS X to leave the file as it ist and add or do nothing to or with it. Just put it in the download-folder.
    When hiding the suffix with apple-i, the file is no longer readable for the navi system. There ist no option to tell the mac just to do nothing; you just can select a different app. But this is not the solution.
    What can I do?
    Thanks
    Mathias

    Limnos wrote:
    I use a much older version of Safari when I do use it. I have that unchcked but when I download a file Safari just downloads it without any prompt for a file name.  What the OP needs is a way to change how Safari handles downloads so it either identifies them correctly and stops adding the wrong extenion to a file, or a way to edit the file name at download time. My old version doesn't have any apparent way to configure either of these, but I can do it in Firefox.
    What?
    The file has a name prior to downloading, Safari does not ask for one to be added at download time (neither do other browsers), once the file has been downloaded the extension can be corrected.

  • Week-old Pro won't turn on, power cord doesn't light up

    I bought a new 13" non-retina MacBook Pro a week ago. Now my laptop will not turn on, and there is no green/amber light on the power cord when it is connected.
    Backstory: I've already had problems with this machine. The same day I bought it, it no longer recognized my admin password that I had set up and logged in with several times. I had to reinstall the operating system.
    The day it stopped working, I had been transferring some files from my old laptop to the pro via an external hard drive. The laptops charge was getting low, so I plugged in the charger. In order to do this, I had to unplug & replug the external hard drive's power cord to get both to fit. I was dumb and forgot that it was necessary for the drive to work, but after I had realized this I assumed that it wasn't such a big deal. After all, I had already transferred everything I need over and there was nothing on the drive that controlled the laptop in any way. There was a popup similar to when a flash drive isn't ejected properly. It said that some things on the drive could be corrupted, but I didn't pay much notice because, as I said, everything I needed was already off. However, after I clicked "ok", the machine shut down.
    Now, my laptop is completely unresponsive. No lights, no fan, nothing at all that would show it is functioning at all. Pressing the power button does nothing. When I plug in the charger, there's no colored indicator. I know this isn't an issue with the charger, because I tried another charger and it too did not have a green/amber light.
    Does anyone know what's wrong, or how I can fix this? If not, I'm bringing it back in to Apple to be fixed/returned.

    Clare,
    Please don't be insulted here, but sometimes the obvious is the stuff that bites us. Are you sure the power cord is plugged into a good outlet? If you're using the cord that attaches in place of the onboard AC connector, is it securely snapped in?
    It seems odd that this happened when it did, meaning you were low on power to begin with. If you think about it, this is how a no power to the charger situation would behave.

  • About error ORA-01208: data file is an old version - not accessing current

    Hi friends,
    After getting an error ,what i have stated below, my database instance was crashed everytime. I have seen alert.log file nothing is there and this error never come in pattern maner it will come anytime during week.
    I have check with my application client they were doing nothing during this time even they have sent me their log i found no writing process was running and no jobs were running during this time.
    My oracle version is 10.2.0.3 and os version is W2k.
    Thanks in advance.
    PM
    Thu Oct 04 21:45:37 2007
    Errors in file d:\oracle\admin\prd347\bdump\prd347_ckpt_1296.trc:
    ORA-01242: data file suffered media failure: database in NOARCHIVELOG mode
    ORA-01122: database file 7 failed verification check
    ORA-01110: data file 7: 'E:\ORADATA\PRD347\CCDM_DATA_SMALL_T01_01.DBF'
    ORA-01208: data file is an old version - not accessing current version
    Thu Oct 04 21:45:37 2007
    Errors in file d:\oracle\admin\prd347\bdump\prd347_ckpt_1296.trc:
    ORA-01242: data file suffered media failure: database in NOARCHIVELOG mode
    ORA-01122: database file 7 failed verification check
    ORA-01110: data file 7: 'E:\ORADATA\PRD347\CCDM_DATA_SMALL_T01_01.DBF'
    ORA-01208: data file is an old version - not accessing current version
    _________________________________________________________________

    Hi,
    I am attaching this CKPT Trace file which might helpful to you all.
    V10 STYLE FILE HEADER:
    Compatibility Vsn = 169869312=0xa200000
    Db ID=2446524247=0x91d2ff57, Db Name='PRD347'
    Activation ID=0=0x0
    Control Seq=654516=0x9fcb4, File size=491520=0x78000
    File Number=7, Blksiz=16384, File Type=3 DATA
    Tablespace #7 - CCDM_DATA_SMALL_T01 rel_fn:7
    Creation at scn: 0x0781.e33c8c09 12/13/2004 15:16:45
    Backup taken at scn: 0x0000.00000000 01/01/1988 00:00:00 thread:0
    reset logs count:0x201c7917 scn: 0x0000.00000001 reset logs terminal rcv data:0x0 scn: 0x0000.00000000
    prev reset logs count:0x0 scn: 0x0000.00000000 prev reset logs terminal rcv data:0x0 scn: 0x0000.00000000
    recovered at 09/25/2007 12:17:31
    status:0x4 root dba:0x00000000 chkpt cnt: 211627 ctl cnt:211626
    begin-hot-backup file size: 0
    Checkpointed at scn: 0x079b.81db9e4f 10/04/2007 21:45:15
    thread:1 rba:(0x33cee.2.10)
    enabled threads: 01000000 00000000 00000000 00000000 00000000 00000000
    00000000 00000000 00000000 00000000 00000000 00000000
    Backup Checkpointed at scn: 0x0000.00000000
    thread:0 rba:(0x0.0.0)
    enabled threads: 00000000 00000000 00000000 00000000 00000000 00000000
    00000000 00000000 00000000 00000000 00000000 00000000
    External cache id: 0x0 0x0 0x0 0x0
    Absolute fuzzy scn: 0x0000.00000000
    Recovery fuzzy scn: 0x0000.00000000 01/01/1988 00:00:00
    Terminal Recovery Stamp 01/01/1988 00:00:00
    Platform Information: Creation Platform ID: 7
    Current Platform ID: 7 Last Platform ID: 7
    DATA FILE #7:
    (name #18) E:\ORADATA\PRD347\CCDM_DATA_SMALL_T01_01.DBF
    creation size=0 block size=16384 status=0xe head=18 tail=18 dup=1
    tablespace 7, index=7 krfil=7 prev_file=0
    unrecoverable scn: 0x0000.00000000 01/01/1988 00:00:00
    Checkpoint cnt:211628 scn: 0x079b.81dba014 10/04/2007 21:45:20
    Stop scn: 0xffff.ffffffff 10/03/2007 02:00:10
    Creation Checkpointed at scn: 0x0781.e33c8c09 12/13/2004 15:16:45
    thread:0 rba:(0x0.0.0)
    enabled threads: 00000000 00000000 00000000 00000000 00000000 00000000
    00000000 00000000 00000000 00000000 00000000 00000000
    Offline scn: 0x0000.00000000 prev_range: 0
    Online Checkpointed at scn: 0x0000.00000000
    thread:0 rba:(0x0.0.0)
    enabled threads: 00000000 00000000 00000000 00000000 00000000 00000000
    00000000 00000000 00000000 00000000 00000000 00000000
    Hot Backup end marker scn: 0x0000.00000000
    aux_file is NOT DEFINED
    ORA-01242: data file suffered media failure: database in NOARCHIVELOG mode
    ORA-01122: database file 7 failed verification check
    ORA-01110: data file 7: 'E:\ORADATA\PRD347\CCDM_DATA_SMALL_T01_01.DBF'
    ORA-01208: data file is an old version - not accessing current version
    error 1242 detected in background process
    ORA-01242: data file suffered media failure: database in NOARCHIVELOG mode
    ORA-01122: database file 7 failed verification check
    ORA-01110: data file 7: 'E:\ORADATA\PRD347\CCDM_DATA_SMALL_T01_01.DBF'
    ORA-01208: data file is an old versio n - not accessing current version
    ------------------------------------------------------------------------------------------------

  • I had to install a new hard drive because my old hard drives boot files became corrupted, and i want to get all of my music files off the old hard drive and regain all my play counts/ratings/playlists

    Greetings everyone
    as the title says, ive had to install a new hard drive  and i want to transfer my old itunes library onto the new drive, maintaining all playlists/play counts/ratings etc, album artwork if possible. The old hard drive is installed as a slave drive and is completely acessible, but due to the boot files being corrupted i cannot use it as the main drive and therefore operate my old itunes. Also, my ipod no longer contains my music library as itunes synced without my permission and wiped it.
    The only thing i have tried is copying all of my old music files from the old drive by selecting 'add folder to library' and then the old drive, then replacing the new itunes library.itl file with the one from my old itunes. This restores all my playlists and playcounts but when i try to play any of the songs it says that the files could not be found, and i dont fancy locating  8500 music files individually!
    Thankyou for taking the time to read my post, any help will be greatly appreciated.

    Ah, my reply was based on the assumption that you had a default installation of iTunes.
    i.e you had all your music in the iTunes media folder inside your iTunes folder.
    If your iTunes folder is so small compared to the amount of music you have, you must have a different arrangement.
    This complicates you situation considerably.
    iTunes can cope with moving around as long as all the music is in the iTunes media folder, not not if it isn't.
    Your first step should be to get iTunes working on the old drive. This will involve editing the xml library file so that the drive letter is correct and then rebuilding the library from the xml file.
    Then you will need to consolidate your library which moves everything into the iTunes media fodler. After that you will be able to use my first suggestion.
    Step 1
    Find the iTunes folder on the old drive and copy the two library files somewhere else so you can find them again. That's iTunes Library.itl and iTunes Library.xml.
    Now open the copy of iTunes Library.xml with WordPad.
    Look for lines starting:
    Location
    These contain the paths to tracks.
    You will need to use a find/replace to change the drive letter so that it is correct.
    Make sure that you include enough in the "find" so that you only change the right thing.
    Maybe /c:/ and replace with /d:/ or whatever.
    After that, tell iTunes to use the library on the old drive with a shift key start.
    Hold down the shift key and start iTunes, keep holding the shift key until you are prompted to choose a library. Navigate to the iTunes folder on the old drive and choose iTunes Library.itl.
    Then use the method in the following article to rebuild your library;
    http://support.apple.com/kb/HT1451
    Unfortunately the date added will be today for all tracks.
    If iTunes works correctly after this, consolidate your library
    File>>Library>>Organize>>consolidate
    This copies all tracks into to iTunes media folder and could create a problem if you do not have disk space so don't do it if you are unsure about free disk space.
    Check that iTunes works OK and then use the first method.
    Message was edited by: polydorus

  • How can i retrieve a few important files from an old time capsule ?

    Hi  can anyone give me a step by step guide as to how i retrieve just a few files from an old time capsule ?
    without a router  ?
    I've plugged an ethernet cable into the wan port & my mac & it shows up as a sparspsebundle data file
    but i desperetly need to grab these certain files
    please can anyone help?
    can i use the usb port on the back of the time capsule
    there must be a way  HELP PLEASE  many thanks

    Don't panic we are working on it..
    I am just avoiding Yosemite like the plague.. (plague on you Yosemite!!) .. as its networking is so bad it causes chaos on my network.. to all other devices.. even though only one device actually runs Yoyos!!
    I am not sure how hard it is for you to go back to Mountain Lion.. or if you have a computer running ML on the network.. if so definitely use it.
    What OS was last used by the MBP when you stopped using it or is it fully up to date. Is the computer in the network now? If so it is much easier to copy and paste the files from a live computer.
    Did you encrypt the backup.. that would really mess things up or have an encrypted disk??
    Have you used the normal TM tool in Yosemite to try and recover your files?? Or perhaps migrated the files.. this can work fine.. migration often being a better way of doing things.. although there are a few rules about using different user names.. etc.
    There is another proviso here I must add.. Yosemite cannot see the backup quickly.. what I mean is that your backup is >500GB. Even by ethernet Yosemite version Time Machine can take more than 24hours just to index that.. maybe longer and by wireless a lot longer.. 3-5 times.. I do not know why spotlight is so slow in Yosemite.. but trust me.. it is pathetic. The yoyo got its string in a knot and seems to need to untangle it for every single file on the backup.
    Be very patient if you open TM backup in Yosemite.. and definitely do this by ethernet not wireless.. otherwise you might die of old age beforehand.

  • Does Your Exchange Calendar Currently Show Events More Than 2 Weeks Old?

    Quick question: Can you view any exchange calendar items on your Pre which you have created on your desktop and which are more than two weeks old as you read this post? I can't.  After several hours of support chat and then an "elevation" to phone support, I was told by Palm telephone support that this was a new feature after Webos 1.2.1.
    However, two things make me doubt that this is true:
    1) Other Pre users on precentral.net report that they have installed 1.2.1 and they can still see exchange calendar events older than two weeks.
    2) I noticed something really weird: I had deleted my exchange account and was re-adding it in an attempt to solve the problem. The account was syncing but I was watching my screen and it was displaying the monthly view of September, 2009. When the account was almost done syncing, I saw the calendar "flicker" a couple of times and when it did, I could see that there were all my grayed out September dates. Then it said that sync was complete and all events before 9/30/09 disappeared.
    SO...I'm thinking that the data is actually in the phone but just not displaying on the calendar! That is really weird and would seem to be a true "bug" to me. For my job, I really need to be able to look back and verify what appointments occurred on what dates in the past. The Iphone and Blackberry users at my office that use the same exchange server can look back months and years at their old events. 
    If you are reading this could you please reply to let me know if this is a unique issue for me or whether others are having the same experience? I'd really appreciate it.
    Thanks,
    Joe
    Post relates to: Pre p100eww (Sprint)
    Post relates to: Pre p100eww (Sprint)

    Very similar issue here.  I am syncing my Pre with Google Mail.  Don't even ASK what a hassle it was to get my Entourage contacts into Gmail and have everything populate the correct fields.  A freakin' NIGHTMARE.
    That said, the syncing with synergy seems to work well, with one major drawback.  No calendar entries older than two months.  This renders my calendar virtually useless.  What is the POINT of this stupidity.  I am perfectly capable of deciding if I want to use my pre's storage for older entries.
    Unbelievable.  I really hope palm gets it's head in gear and starts supporting its loyal users.  Much more of this, and I will jump to virtually ANY other smart phone. 

Maybe you are looking for