Updating Time from NIST to Pacific Daylight Time

I'm a newbie to Java and I'm trying to finish my final project in my Java class.
Our project consists of setting up an ODBC and downloading data from a website and saving it to a text file that includes the current time from NIST.
The specs ask for:
Obtain the current exact time from the NIST (National Institute of Standards and Technology) by decoding the time from this web page or this web page and subtract 7 hours from it.
b.     Open a sequential file and call it "APRYYMMDD.txt" where YY is year, MM is month, DD is the current day.
c.     Write the first record as the exact time UTC obtained above.
d.     Write the second record as the exact time obtained above minus 7 hours and formatted as "MM/dd/yyy kk:mm " (see SimpleDateFormat class).
Which I have done, but my problem is coming forth when I write the code to update the time. When I subtract 7:00 hours from the GMT, the time is off by two hours, when I subtract 14:00 it is correct.
If anyone can help me, there are Duke dollars available.
Here is my code:
� public static void Phase3(String mstrODBC, String mstrTable)
��� {
������� RandomAccessFile raf = null;
������� java.util.Date CurDate = null;
������� String Curtime = inetBank.getURL("http://128.138.140.44:13/");
������� SimpleDateFormat df = new SimpleDateFormat("yy-MM-dd hh:mm:ss");
������� String AvgApr = null;

������� SimpleDateFormat pf = new SimpleDateFormat("MM/dd/yyyy kk:mm");

������� try{

�������� CurDate =� df.parse(Curtime.substring(8,25));

�������� // Creates a text file if no such file is there
�������� // If file exists deletes all its data and then rewrites in it
�������� raf = new RandomAccessFile("APR" + justNumbers(Curtime.substring(8,16),"-","") + ".txt","rw");
�������� raf.setLength(0);
�������� raf.seek(0);
�������� raf.writeBytes(Curtime);

������� pf.setTimeZone(TimeZone.getTimeZone("GMT-14:00")); // new code

�������� raf.writeBytes("Pacific Daylight Time = " + pf.format(CurDate) +"\r"); //new code

One more try:
    public static void Phase3(String mstrODBC, String mstrTable)
        RandomAccessFile raf = null;
        java.util.Date CurDate = null;
        String Curtime = inetBank.getURL("http://128.138.140.44:13/");
        SimpleDateFormat df = new SimpleDateFormat("yy-MM-dd hh:mm:ss");
        String AvgApr = null;
        SimpleDateFormat pf = new SimpleDateFormat("MM/dd/yyyy kk:mm");
        try{
         CurDate =  df.parse(Curtime.substring(8,25));
         // Creates a text file if no such file is there
         // If file exists deletes all its data and then rewrites in it
         raf = new RandomAccessFile("APR" + justNumbers(Curtime.substring(8,16),"-","") + ".txt","rw");
         raf.setLength(0);
         raf.seek(0);
         raf.writeBytes(Curtime);
         //GMT-12:00 gives a time which is less than 12 hours of GMT time.
         // NIST time is 5 hours more than GMT. So, (5+7) total 12 subtracted to
         // get the desired time.
         pf.setTimeZone(TimeZone.getTimeZone("GMT-5:00"));
         raf.writeBytes("Pacific Daylight Time = " + pf.format(CurDate) +"\r");

Similar Messages

  • When trying to update apps from iPad and iPhone a previous one time users email keeps coming up. How do I delete their information?

    When trying to update apps from iPad and iPhone a previous one time users email keeps coming up. How do I delete their information?

    delete off any apps that are asking for the wrong apple id and download/sync them over from the correct one

  • How can i transfer data from old MacBook Pro, which is too old to update time machine, to the newest MacBook Pro?

    I recently bought a new MacBook Pro, and wanted to transfer all the data from my old MacBook Pro, but I get the message saying I need to update time machine on my old one in order to use time machine. However, my old one is too old to update. So I decided to use the cable to transfer, because I heard I can do it that way even though it could take time. But I have no idea what to do...
    Can someone help me?

    A Basic Guide for Migrating to Intel-Macs
    The Knowledgebase article Intel-based Mac: Some migrated applications may need to be updated refers to methods of dealing with migrating from PowerPC chips to Intel with the Migration Assistant safely. The authors of this tip have not had a chance to verify this works in all instances, or that it avoids the 10.6.1 and earlier Guest Account bug that caused account information to get deleted upon use of the Migration/Setup Assistant. However, a well backed up source that includes at least two backups of all the data that are not connected to your machine will help you avoid potential issues, should they arise. In event it does not work, follow the steps below.
    If you are migrating a PowerPC system (G3, G4, or G5) to an Intel-Mac be careful what you migrate.  Keep in mind that some items that may get transferred will not work on Intel machines and may end up causing your computer's operating system to malfunction.
    Rosetta supports "software that runs on the PowerPC G3, G4, or G5 processor that are built for Mac OS X". This excludes the items that are not universal binaries or simply will not work in Rosetta:
    Classic Environment, and subsequently any Mac OS 9 or earlier applications
    Screensavers written for the PowerPC System Preference add-ons
    All Unsanity Haxies Browser and other plug-ins
    Contextual Menu Items
    Applications which specifically require the PowerPC G5 Kernel extensions
    Java applications with JNI (PowerPC) libraries
    See also What Can Be Translated by Rosetta.
    In addition to the above you could also have problems with migrated cache files and/or cache files containing code that is incompatible.
    If you migrate a user folder that contains any of these items, you may find that your Intel-Mac is malfunctioning. It would be wise to take care when migrating your systems from a PowerPC platform to an Intel-Mac platform to assure that you do not migrate these incompatible items.
    If you have problems with applications not working, then completely uninstall said application and reinstall it from scratch. Take great care with Java applications and Java-based Peer-to-Peer applications. Many Java apps will not work on Intel-Macs as they are currently compiled. As of this time Limewire, Cabos, and Acquisition are available as universal binaries. Do not install browser plug-ins such as Flash or Shockwave from downloaded installers unless they are universal binaries. The version of OS X installed on your Intel-Mac comes with special compatible versions of Flash and Shockwave plug-ins for use with your browser.
    The same problem will exist for any hardware drivers such as mouse software unless the drivers have been compiled as universal binaries. For third-party mice the current choices are USB Overdrive or SteerMouse. Contact the developer or manufacturer of your third-party mouse software to find out when a universal binary version will be available.
    Also be careful with some backup utilities and third-party disk repair utilities. Disk Warrior, TechTool Pro , SuperDuper , and Drive Genius  work properly on Intel-Macs with Leopard.  The same caution may apply to the many "maintenance" utilities that have not yet been converted to universal binaries.  Leopard Cache Cleaner, Onyx, TinkerTool System, and Cocktail are now compatible with Leopard.
    Before migrating or installing software on your Intel-Mac check MacFixit's Rosetta Compatibility Index.
    Additional links that will be helpful to new Intel-Mac users:
    Intel In Macs
    Apple Guide to Universal Applications
    MacInTouch List of Compatible Universal Binaries
    MacInTouch List of Rosetta Compatible Applications
    MacUpdate List of Intel-Compatible Software
    Transferring data with Setup Assistant - Migration Assistant FAQ
    OS X Lion: How to use Migration Assistant to transfer files from another Mac
    Because Migration Assistant isn't the ideal way to migrate from PowerPC to Intel Macs, using Target Disk Mode, copying the critical contents to CD and DVD, an external hard drive, or networking will work better when moving from PowerPC to Intel Macs.  The initial section below discusses Target Disk Mode.  It is then followed by a section which discusses networking with Macs that lack Firewire.
    If both computers support the use of Firewire then you can use the following instructions:
    Repair the hard drive and permissions using Disk Utility.
    Backup your data.  This is vitally important in case you make a mistake or there's some other problem.
    Connect a Firewire cable between your old Mac and your new Intel Mac.
    Startup your old Mac in Transferring files between two computers using FireWire.
    Startup your new Mac for the first time, go through the setup and registration screens, but do NOT migrate data over. Get to your desktop on the new Mac without migrating any new data over.
    If you are not able to use a Firewire connection (for example you have a Late 2008 MacBook that only supports USB:)
    1. Set up a local home network: Creating a small Ethernet Network.
    2. If you have a MacBook Air or Late 2008 MacBook see the following:
    MacBook (13-inch, Aluminum, Late 2008) and MacBook Pro (15-inch, Late 2008)- What to do if migration is unsuccessful;
    MacBook Air- Migration Tips and Tricks;
    MacBook Air- Remote Disc, Migration, or Remote Install Mac OS X and wireless 802.11n networks.
    Copy the following items from your old Mac to the new Mac:
    In your /Home/ folder: Documents, Movies, Music, Pictures, and Sites folders.
    In your /Home/Library/ folder:
    /Home/Library/Application Support/AddressBook (copy the whole folder) /Home/Library/Application Support/iCal (copy the whole folder)
    Also in /Home/Library/Application Support (copy whatever else you need including folders for any third-party applications)
    /Home/Library/Keychains (copy the whole folder) /Home/Library/Mail (copy the whole folder) /Home/Library/Preferences/ (copy the whole folder) /Home /Library/Calendars (copy the whole folder) /Home /Library/iTunes (copy the whole folder) /Home /Library/Safari (copy the whole folder)
    If you want cookies:
    /Home/Library/Cookies/Cookies.plist /Home/Library/Application Support/WebFoundation/HTTPCookies.plist
    For Entourage users:
    Entourage is in /Home/Documents/Microsoft User Data Also in /Home/Library/Preferences/Microsoft.
    Credit goes to Macjack for this information.
    If you need to transfer data for other applications please ask the vendor or ask in the  Discussions where specific applications store their data.
    5. Once you have transferred what you need restart the new Mac and test to make sure the contents are there for each of the applications.
    Written by Kappy with additional contributions from a brody.Revised 5/21/2011

  • When I use update software from my mobile it take long time for checking update software and no thing happened to update my IOS software

    When I use update software from my mobile it take long time for checking update software and no thing happened to update my IOS software

    Servers have been swamped. Keep trying and be patient. Wait a few days.

  • HT4972 Hi! I have tried to update OS from 4.3.5 to latest on Ipod touch but every time after 70% completing an error is prompted and say update cannot be completed. Please check the setting. Please guide in this respect to be updated.

    Hi!
    I have tried to update OS from 4.3.5 to latest on Ipod touch but every time after 70% completing an error is prompted and say update cannot be completed. Please check the setting. Please guide in this respect to be updated.

    Disable the computer's firewall and antivirus during the download and update.

  • Update table from SM30 with automatic Time Stamp

    Hi,
    I have created a table maintenance generator for updating table from SM30.
    Now there are fields in my table which are CRETING TIME and CHANGING TIME. Both being TIMESTAMP field (datatype: RSDDTZNTSTMPS).
    Is it possible while user updates records/create new record in the table from SM30, these time stamp field to automatically get populated.
    Also is there any F4 help available for TIMESTAMP field?
    ags.

    Hi,
    You need to do two things inorder to get the desired results.
    1) Go to Screen Layout of the Screen created by table maintenance generator and make the date/time columns to DISPLAY ONLY. This will ensure that user is not able to modify the values at runtime
    2) Write the code in PAI of the Module pool program to populate the values at runtime using Sy-datum/sy-uzeit. (Hint : Search for INSERT/MODIFY statements which will show the location before which you need to write your logic)
    Regards,
    Kshitija

  • How to read updated data from a real-time generated file?

    I have a question:
    I want to read the 10 mostly updated data from a real time generated data file. The data in this file is accumulated. how can i read mostly recently data to an applet? and further to using this data to draw a real-time graph? pls help
    kelvin t.l. tse

    Hi,
    I think there is no "typical" way. You will have to define a convention on how the new data are stored into the file, so as to know how to accessthem. If new data are simply put at theend of your file, you may use a RandomAccessFile to read only those lines that interest you (the 1 final lines).Otherwise, you should at least know how the data file is written.
    You can know if thedata file has been modified with the File.lastModified() method. This retrurns a long value corresponding to the date and hour the file was last modified. Store that value ito you appl. and perdiodically (use a Thread), compare that value with the value returned by lastModief(). If both value are NOt equal, then the file has been updated
    it's all a question of knowing how the data are stored into the datafie generated.
    Be also aware that you will probably have problem when your java appl. tries to read the file at the same time it is updated by the other application. I guess when theother application writes data into the file, you will not be able to read it. So, use try{} catch statements and first check to see if you can read the file with File. canRead(). If not, simply delay the reading process by asking a Thread.yield() or Thread.delay (1000)...
    vincent

  • ITunes tells me there is an update (5.1) but it never gets any further than trying to connect to the iPad server. I've tried updating directly from my iPad and it too times out saying it cannot connect to any server. My regular Apple updates work fine.

    iTunes tells me there is an iOS update (5.1) but it never gets any further than trying to connect to the iPad server. I've tried updating directly from my iPad and it too times out saying it cannot connect to any server. My regular Apple updates work fine.

    I haven't updated yet. Apple's download servers have been too busy. Did you know you can update via wifi instead of connection to your computer?
    Here's a description of the update. Not a lot of changes for iPad 1/2.
    iOS 5.1 Software Update
    http://support.apple.com/kb/DL1504
    You can wait a while & update at your convenience.
     Cheers, Tom

  • DBI-  Update TIme Dimention is completed in Error.

    Hi Expert
    Please help me to resolve the issue the error we are getting ierror while run the request running in DBI-
    Report Name Update Time Dimention
    From Date 01-Jan-12
    To Date 31-Dec-15
    SURAJ
    THE idea is we are tring to upload the time dimention in Oracle.
    1)
    Going to check missing dates in the Time dimension from 19-AUG-2011 00:00:00 to 05-FEB-2013 00:00:00 ...
    There are missing dates in the Time dimension.
    To fix the issue, please load the Time dimension from 01-JAN-2013 00:00:00 to 05-FEB-2013 00:00:00
    The following order lines have dates outside the time dimension range. Review if they are incorrect timestamps or missing in time dimension.
    Please reload the Order Management base summary after fixing the missing dates.
    Order Number - Line Number - Line ID - Booked Date - Fulfilled Date - Shipped Date - Schedule Ship Date
    5163201 - 1.1 - 1309578 - 08/23/2012 - - - 01/03/2013
    5162913 - 1.1 - 1307386 - 08/21/2012 - - - 01/08/2013
    5162910 - 1.1 - 1307383 - 08/21/2012 - - - 02/05/2013
    5162885 - 1.1 - 1307197 - 08/21/2012 - - - 01/15/2013
    5162808 - 4.1 - 1306480 - 08/20/2012 - - - 02/05/2013
    5162808 - 3.1 - 1306479 - 08/20/2012 - - - 02/05/2013
    5162808 - 2.1 - 1306478 - 08/20/2012 - - - 02/05/2013
    5162808 - 1.1 - 1306477 - 08/20/2012 - - - 02/05/2013
    5162669 - 1.1 - 1305118 - 08/17/2012 - - - 02/05/2013
    5162645 - 1.1 - 1304925 - 08/17/2012 - - - 02/05/2013
    2)
    Financial Intelligence: Version : 11.5.0
    Copyright (c) 1979, 1999, Oracle Corporation. All rights reserved.
    FII_TIME_C module: Update Time Dimension
    Current system time is 27-AUG-2012 09:57:51
    **Starts**27-AUG-2012 09:57:52
    **Ends**27-AUG-2012 10:00:13
    Start of log messages from FND_FILE
    DB Version: 10.2.0.4.0
    Atomic refresh: false
    FII_TIME_CAL_DAY_MV was altered to parallel
    FII_TIME_CAL_DAY_MV was refreshed using INITIAL refresh method
    FII_TIME_CAL_DAY_MV was altered to nonparallel
    FND_GLOBAL.CONC_PRIORITY_REQUEST: 9888
    Request Set: , FORCE_FULL option:
    No action for MV Log recreation.
    calling "Import BIS Time Dimension into BSC program"
    source language=US
    Installed languages
    US
    DBI Implemented
    fii_time_day has data. DBI Implemented
    select 1 from bsc_db_calendar,bsc_sys_calendars_b where edw_calendar_type_id=1 and edw_calendar_id =1001
    and bsc_db_calendar.calendar_id=bsc_sys_calendars_b.calendar_id and rownum=1
    select 1 from mlog$_fii_time_day where rownum=1
    select 1 from mlog$_fii_time_day where dmltype$$ <>'I' and rownum=1
    Only insert rows. Inc change
    In load_dbi_cal_into_bsc_inc 08/27/2012 10:00:11
    cursor c1 is select max(ent_year_id), min(ent_year_id), to_number(to_char(sysdate,'YYYY')) from fii_time_day; 08/27/2012 10:00:11
    l_max_year=2015 08/27/2012 10:00:11
    l_min_year=2004 08/27/2012 10:00:11
    l_current_year=2012 08/27/2012 10:00:11
    Finaly g_bsc_greg_fiscal_year=2012
    select bsc_sys_periodicities.periodicity_id,bsc_sys_periodicities.period_type_id from bsc_sys_periodicities ,bsc_sys_calendars_b where bsc_sys_periodicities.calendar_id=bsc_sys_calendars_b.calendar_id and bsc_sys_calendars_b.edw_calendar_type_id=1 an
    d bsc_sys_calendars_b.edw_calendar_id=1001/1002/1003
    Ent periodicities
    g_ent_cal_id=24
    g_ent_fiscal_change=0
    g_ent_day_per_id=242
    g_ent_week_per_id=243
    g_ent_period_per_id=244
    g_ent_qtr_per_id=245
    g_ent_year_per_id=246
    445 periodicities
    g_445_cal_id=25
    g_445_fiscal_change=0
    g_445_cal_short_name=BSC_PER_2455850894563151
    g_445_day_per_id=247
    g_445_day__short_name=BSC_PER_2455850894563151
    g_445_week_per_id=248
    g_445_week_short_name=BSC_PER_2455850894563163
    g_445_p445_per_id=249
    g_445_p445_short_name=BSC_PER_2455850894563171
    g_445_year_per_id=250
    g_445_year_short_name=BSC_PER_2455850894563176
    Greg periodicities
    g_greg_cal_id=26
    g_greg_fiscal_change=0
    g_greg_cal_short_name=BSC_PER_2455850894563184
    g_greg_day_per_id=251
    g_greg_day_short_name=BSC_PER_2455850894563185
    g_greg_period_per_id=252
    g_greg_period_short_name=BSC_PER_2455850894563190
    g_greg_qtr_per_id=253
    g_greg_qtr_short_name=BSC_PER_2455850894563196
    g_greg_year_per_id=254
    g_greg_year_short=BSC_PER_2455850894563201
    select report_date,to_char(report_date,'DD'),to_char(report_date,'MM'),to_char(report_date,'YYYY'),
    ent_period_id,week_id from mlog$_fii_time_day
    where not exists (select 1 from bsc_sys_periods where
    periodicity_id=:1 and time_fk=to_char(report
    _date,'MM/DD/YYYY'))
    order by report_date 242
    g_num_dbi_cal_record=1095
    select to_date(start_month||'/'||start_day||'/'||current_year,'MM/DD/YYYY') from bsc_sys_calendars_b where edw_calendar_type_id=1 and edw_calendar_id=1001
    g_ent_start_date=01-JAN-11
    select to_date(start_month||'/'||start_day||'/'||current_year,'MM/DD/YYYY') from bsc_sys_calendars_b where edw_calendar_type_id=1 and edw_calendar_id=1002
    g_445_start_date=03-JAN-11
    select to_date(start_month||'/'||start_day||'/'||current_year,'MM/DD/YYYY') from bsc_sys_calendars_b where edw_calendar_type_id=1 and edw_calendar_id=1003
    g_greg_start_date=01-JAN-11
    select ent_period_id,ent_year_id,sequence,name,start_date, end_date from FII_TIME_ENT_PERIOD
    where ent_period_id not in (select to_number(time_fk) from bsc_sys_periods where periodicity_id=:1)
    order by ent_period_id 244
    g_num_dbi_ent_period=36
    select ent_qtr_id,ent_year_id,sequence,name, start_date, end_date from FII_TIME_ENT_QTR
    where ent_qtr_id not in (select to_number(time_fk) from bsc_sys_periods where periodicity_id=:1)
    order by ent_qtr_id 245
    g_num_dbi_ent_qtr=12
    select ent_year_id,sequence,name, start_date, end_date from FII_TIME_ENT_YEAR
    where ent_year_id not in (select to_number(time_fk) from bsc_sys_periods where periodicity_id=:1)
    order by ent_year_id 246
    g_num_dbi_ent_year=3
    select week_id,substr(week_id,1,4),substr(week_id,1,4),sequence,name, start_date, end_date from FII_TIME_WEEK
    where week_id not in (select to_number(time_fk) from bsc_sys_periods where periodicity_id=:1)
    order by week_id 248
    g_num_dbi_445_week=156
    select period445_id,year445_id,sequence,name, start_date, end_date from fii_time_p445
    where period445_id not in (select to_number(time_fk) from bsc_sys_periods where periodicity_id=:1)
    order by period445_id 249
    g_num_dbi_445_p445=35
    select year445_id col1,year445_id col2,name, start_date, end_date from fii_time_year445
    where year445_id not in (select to_number(time_fk) from bsc_sys_periods where periodicity_id=:1)
    order by year445_id 250
    g_num_dbi_445_year=2
    In correct_ent_week 08/27/2012 10:00:12
    select to_date(calendar_year,calendar_month,calendar_day,week52,year from bsc_db_calendar where calendar_id=p_calendar
    order by calendar_year desc,calendar_month desc,calendar_day desc using 24
    l_max_date=31-DEC-12, l_prev_week=54, l_prev_year=2012
    select week_id from fii_time_week where week_id in (select week_id from fii_time_day where report_date=:1)
    l_prev_fii_week=20130101
    Going to correct data.
    l_prev_week=54
    l_prev_year=2012
    l_prev_fii_week=20130101
    l_index=1
    Output from g_dbi_445_week
    20130102 2 2 2013
    20130103 3 3 2013
    20130104 4 4 2013
    20130205 5 5 2013
    20130206 6 6 2013
    20130207 7 7 2013
    20130208 8 8 2013
    20130309 9 9 2013
    20130310 10 10 2013
    20130311 11 11 2013
    20130312 12 12 2013
    20130313 13 13 2013
    20130414 14 14 2013
    20130415 15 15 2013
    20130416 16 16 2013
    20130417 17 17 2013
    20130518 18 18 2013
    20130519 19 19 2013
    20130520 20 20 2013
    20130521 21 21 2013
    20130622 22 22 2013
    20130623 23 23 2013
    20130624 24 24 2013
    20130625 25 25 2013
    20130626 26 26 2013
    20130727 27 27 2013
    20130728 28 28 2013
    20130729 29 29 2013
    20130730 30 30 2013
    20130831 31 31 2013
    20130832 32 32 2013
    20130833 33 33 2013
    20130834 34 34 2013
    20130935 35 35 2013
    20130936 36 36 2013
    20130937 37 37 2013
    20130938 38 38 2013
    20130939 39 39 2013
    20131040 40 40 2013
    20131041 41 41 2013
    20131042 42 42 2013
    20131043 43 43 2013
    20131144 44 44 2013
    20131145 45 45 2013
    20131146 46 46 2013
    20131147 47 47 2013
    20131248 48 48 2013
    20131249 49 49 2013
    20131250 50 50 2013
    20131251 51 51 2013
    20131252 52 52 2013
    20140101 1 1 2014
    20140102 2 2 2014
    20140103 3 3 2014
    20140104 4 4 2014
    20140205 5 5 2014
    20140206 6 6 2014
    20140207 7 7 2014
    20140208 8 8 2014
    20140309 9 9 2014
    20140310 10 10 2014
    20140311 11 11 2014
    20140312 12 12 2014
    20140313 13 13 2014
    20140414 14 14 2014
    20140415 15 15 2014
    20140416 16 16 2014
    20140417 17 17 2014
    20140518 18 18 2014
    20140519 19 19 2014
    20140520 20 20 2014
    20140521 21 21 2014
    Error in load_dbi_445_cal_data ORA-00001: unique constraint (BSC.BSC_SYS_PERIODS_U1) violated 08/27/2012 10:00:13
    Error in load_dbi_cal_into_bsc_inc ORA-00001: unique constraint (BSC.BSC_SYS_PERIODS_U1) violated 08/27/2012 10:00:13
    Error in load_dbi_cal_into_bsc ORA-00001: unique constraint (BSC.BSC_SYS_PERIODS_U1) violated 08/27/2012 10:00:13
    Exception happens in BSC_DBI_CALENDAR.load_dbi_cal_into_bsc ORA-00001: unique constraint (BSC.BSC_SYS_PERIODS_U1) violated
    End of log messages from FND_FILE
    Executing request completion options...
    Output is not being printed because:
    The print option has been disabled for this report.
    Finished executing request completion options.
    Concurrent request completed
    Current system time is 27-AUG-2012 10:00:14
    ---------------------------------------------------------------------------

    Please see if (Ora-00001: Unique Constraint (Bsc.Bsc_sys_periods_u1) Violated [ID 554200.1]) helps.
    Thanks,
    Hussein

  • No update time stamp in the saved data file

    In NI Example Finder, there is a file called "Fieldpoint Datalogger.vi". I flip the "Time Format" switch to "HH:MMS" and the "File Type" switch to "Spreadsheet". The data saved into a file have time stamp at each line. However, the time stamp in each line of the data file saved as the same time without any update to the most current time. I put sampling frequency for 100 ms and saved as 50K bytes file size, but all the time stamps in the file show one same time (I believe it is the time to start to save into file and keep repeat it). How can I get the update time stamp for every 100ms or 500ms and save that time stamp into the data file from this "Fieldpoint Datalogger.vi"? Should I change anything on the subVI called
    "embedded FPLog.vi"?

    Hello,
    Fieldpoint systems usually base the timestamp on the National Instruments Time Server, which is installed on any computer using the Fieldpoint driver. This means that you can configure the Time Server on a Fieldpoint system to continuously check the system time of any computer on the network that has the Fieldpoint Driver installed by referencing its IP address.
    If the timestamp is not updating, then we should first verify that it has been configured properly.
    Take a look at the following Knowledge Base and let us know if using the listed steps takes care of this issue.
    http://digital.ni.com/public.nsf/websearch/C4E56AD6450FC5FD86256DFF0007FF01?OpenDocument
    Best regards,
    Justin Tipton
    National Instruments

  • Update time and date with server time..?

    Hi.. All
    every login ,flash get server time from php. how can i update  time and date in flash..?

    I'm going to only show the month example, the rest is fairly straightforward:
    <?php $month = date('n'); ?>
    var date:Date = new Date();
    trace(date);
    date.setMonth($month);
    trace(date);

  • Last updated time of procedure

    Hi
    I want to know last updated time of a procedure.
    can any body tell me.
    thanks

    select last_ddl_time from all_objects where object_name = 'procedure_name' and object_type = 'PROCEDURE';

  • Update Time where Date already exists

    Hi,
    When i am trying to update time in the column where date already exists, i tried using the update query, but time is not getting updated.
    UPDATE ABC SET ATTRIBUTE=TO_DATE('09/30/2011 12:00:00 AM','MM/DD/YYYY HH:MI:SS')
    Attribute = 9/30/2011 (As per current record in DB) and i want to add time also..
    So when i try updating the record, i dont get any errors, but the time does not get updated, can any one help me for this issue.???
    Datatype of Attribute is Varchar2(150)
    Thanks

    Is there anyway to update a record throgh TO_CHAR function???
    SQL> @test
    SQL> create table abc (Attribute Varchar2(150));
    Table created.
    SQL> insert into abc values('09/30/2011');
    1 row created.
    SQL> commit;
    Commit complete.
    SQL> select * from abc;
    ATTRIBUTE
    09/30/2011
    SQL> UPDATE ABC SET ATTRIBUTE=to_char(sysdate,'YYYY_MM_DD HH24:MI:SS');
    1 row updated.
    SQL> COMMIT;
    Commit complete.
    SQL> select * from abc;
    ATTRIBUTE
    2011_03_06 19:59:37
    SQL> drop table abc;
    Table dropped.
    SQL>

  • HAVING UPDATE TIME

    Hello
    Would be very very interresting thing having the Update time of all documents (and UDO also).
    We have Create Date and time, modify date but no modify time, so !
    Thanks

    They must have bought grey market iPhones then, it is blocked on officially sold devices - from here :
    * FaceTime is not available in Saudi Arabia

  • Should I Update Time Machine

    Hi, Should I Update Time Machine if I don't use Time Capsule? I do use Time Machine. New posted update is very unclear on this. Thanks, Rob

    Well, not entirely, it does fix some fundamental bugs in Time Machine itself as for support for external drives. (it fixed a bug that i've had from the beginning (Time Machine would not automatically backup on the hour, only manual backups would work.))

Maybe you are looking for

  • Posting Account Determination Query in SD

    Hello Forum Contributor, Can i post differently using the same billing type in accounting determination? Kindly understand my scenario as below. Customer Type A and B are 2 different customers that has a slight different posting. These 2 customers wi

  • PC to Mac with external drive as main library

    I recently switched from PC (Dell Inspiron) to Mac (MacBook) and am having some serious difficulties getting my iTunes to cooperate. I used an external drive as my main iTunes library on my PC. I would like to continue doing this with my new Mac beca

  • Request for C++ ExtractorProcessor code snippets

    Hi, Does anyone have any C++ code snippets of using the ExtractorProcessor? I'm trying to implement an ExtractorProcessor in C++ - I have created a ValueExtractor and I can create the ExtractorProcessor from that, but the compiler gives me an error w

  • HT3204 signature invalid comes up when i try and update

    When I try and update my itunes it comes up signature invalid and wont update

  • Replace  between [ and ]

    Hi can someone give me a simple example of how to replace all characrters between '[' and ']' with one hardcoded string , eg schema name. I know how to do it with instr but looing for something straightforward with reg exp probably Edited by: Keith J