Adding time issue using Date's getTime method

The following code is incorrectly adding 5 hours to the resultant time.
I need to be able to add dates, and this just isn't working right.
Is this a bug or am I missing something?
long msecSum = 0 ;
DateFormat dateFormat = new SimpleDateFormat("HH:mm:ss.SSS") ;
try
Date date1 = dateFormat.parse("01:02:05.101") ;
Date date2 = dateFormat.parse("02:03:10.102") ;
System.out.println("Date1: " + dateFormat.format(date1));
System.out.println("Date2: " + dateFormat.format(date2));
msecSum = date1.getTime() + date2.getTime() ; // adds 5 hours !!!
System.out.println("Sum: " + dateFormat.format(msecSum)) ;
catch (Exception e)
System.out.println("Unable to process time values");
Results:
Date1: 01:02:05.101
Date2: 02:03:10.102
Sum: 08:05:15.203 // should be 3 hours, not 8

Dates shouldn't be added, but if you promise not to tell anyone:
long msecSum = 0 ;
DateFormat dateFormat = new SimpleDateFormat("HH:mm:ss.SSS") ;
dateFormat.setTimeZone(TimeZone.getTimeZone("GMT"));
try
Date date1 = dateFormat.parse("01:02:05.101") ;
Date date2 = dateFormat.parse("02:03:10.102") ;
System.out.println("Date1: " + dateFormat.format(date1));
System.out.println("Date2: " + dateFormat.format(date2));
msecSum = date1.getTime() + date2.getTime() ; // adds 5 hours !!!
System.out.println("Sum: " + dateFormat.format(msecSum)) ;
catch (Exception e)
System.out.println("Unable to process time values");Me? I would just parse the String "01:02:05.101" to extract hours,
minutes, seconds and milliseconds and do the math.

Similar Messages

  • Issue using data link in XML Publisher

    Dear All,
    I am new to XML Publisher, for the first time trying data link concept in XML Publisher tool. The issue is very simple, I have two queries Q1(say it fetches sales_order_number, application_name ) and Q2 (say it fetches sales_order_number , error_number, error_description). And sales_order_number is passed as input using data link to Query Q2 from query Q1 and Q2 will retrive more than one row for a given sales_order_number.
    Say for a given dept_name 1001 the output will be something similiar like
    Q1:
    SO# | Appl.Name
    1001 | 'Invoice '
    Q2:
    SO# | Error.# | Error Desc
    1001 | 1512 | No Data Found
    1001 | 1513 | Invalid Entry
    1001 | 2674 | Error while inserting the record
    and the query which I have used in XML template goes like this
    <dataQuery>
    <sqlStatement name="Q1">
    <![CDATA[select sales_order_number, application_name                 
                      from T1
                     where sales_order_number = :in_sales_order_num]]>
    </sqlStatement>
    <sqlStatement name="LINES">
    <![CDATA[
    select sales_order_number , error_number, error_description
    from T2]]>
    </sqlStatement>
    <link name="Dummy_LINK" parentQuery="Q1" parentColumn="sales_order_number" childQuery="Q2" childColumn="sales_order_number" condition="="/>
    </dataQuery>
    <daraStructure/>
    And the grouping is as follows
    <group name="G_Q1" source="Q1">     
         <element name="sales_order_number" value="sales_order_number"/>
         <element name="application_name" value="application_name"/>     
    <group name="G_Q2" source="Q2">
         <element name="sales_order_number" value="sales_order_number"/>
         <element name="error_number" value="error_number"/>
         <element name="error_description" value="error_description"/>     
    </group>
    </group>
    And in the RTF template I have properly used <?for-each:G_Q1?> <?for-each:G_Q2?>- --
    <?end for-each?><?end for-each?>
    Ideally the header (Q1) should have one row and the lines (Q2) should have 3 rows. But the issue here is even Q1 produces 3 rows.
    If in case Q2 has 4 records, then Q1 also plots 4 records in the report output. Hope I am explaining the issue correctly. Any help to resolve the issue would be a great. Thanks in advance.
    Regards,
    Antony.

    try like this
    <?if: (TYPE='A') or (TYPE= 'B')?><TABLE STRUCTURE><?end if?>
    or
    <?if:contains('A~B', TYPE )?><TABLE STRUCTURE> <?end if?>

  • Unable to insert date and time when using date datatype

    Hi
    I am hitting a bit of a problem when using the date datatype. When trying to save a row to the table where the field it throws an error ora 01830 and complains about converting the date format picture ends...etc. Now when I do the insert, I use the to_date function with the format of "dd-mon-yyyy hh24:mi:ss". Of course, when I remove the time element, everything is perfect.
    Checking sysdate, I noticed that the time element wasn't be displayed, and I used alter session set nls_date_format to set the date and time I want to save to the table, which worked!
    Then based on advice in a previous thread to permanently fix the problem, I used alter system set nls_date_format ="dd-mon-yyyy hh24:mi:ss" scope=spfile; This showed that it was altered, and I can see the setting in the em. In sqlplus, I shutdown the database, and restarted with startup mount; alter database open; and then selecting sysdate, it still shows the date as dd-mon-yy, and still no time! Checking the em, and looking up the nls_date_format the setting is still shown as "dd-mon-yyyy hh24:mi:ss".
    So, my question is this - what am I doing wrong? Why can't save date and time using date in Oracle 11g?????
    Thanks

    user633278 wrote:
    Hi
    I am hitting a bit of a problem when using the date datatype. When trying to save a row to the table where the field it throws an error ora 01830 and complains about converting the date format picture ends...etc. Now when I do the insert, I use the to_date function with the format of "dd-mon-yyyy hh24:mi:ss". Of course, when I remove the time element, everything is perfect.
    Checking sysdate, I noticed that the time element wasn't be displayed, and I used alter session set nls_date_format to set the date and time I want to save to the table, which worked!
    Then based on advice in a previous thread to permanently fix the problem, I used alter system set nls_date_format ="dd-mon-yyyy hh24:mi:ss" scope=spfile; This showed that it was altered, and I can see the setting in the em. In sqlplus, I shutdown the database, and restarted with startup mount; alter database open; and then selecting sysdate, it still shows the date as dd-mon-yy, and still no time! Checking the em, and looking up the nls_date_format the setting is still shown as "dd-mon-yyyy hh24:mi:ss".
    So, my question is this - what am I doing wrong? Why can't save date and time using date in Oracle 11g?????
    ThanksYou most certainly can save the time. A DATE column, by definition stores date and time. What you describe is a presentation problem, and setting nls_date_format at the system as an init parm is the weakest of all settings as it is overridden by several other locations.
    without seeing the exact sql that produced the error (not just your description of what you think you were doing) it is impossible to say for sure.
    However, I'd suggest you read http://edstevensdba.wordpress.com/2011/04/07/nls_date_format/

  • Run Time error using create_popup_to_confirm in Post_Exit Method

    Hi,
    I am trying to use the create_popup_to_confirm method to display a popup box in order to create a simple confirmation popup box. The transaction is failing with an exception. Following is the Error analysis from ST22
    An exception occurred which is explained in detail below.                      
    The exception, which is assigned to class 'CX_WDR_RT_EXCEPTION', was not caught
    and therefore caused a runtime error.
    The reason for the exception is:
    Component ID_0001000300140017 Not Found
    Nothing I tried seem to work. I even copied the following code directly from SAP Help in order to try to get the popup box working:
    DATA: l_cmp_api TYPE REF TO if_wd_component,
          l_window_manager TYPE REF TO if_wd_window_manager,
          l_popup TYPE REF TO if_wd_window,
          l_text TYPE string_table.
    l_cmp_api = wd_this->wd_get_api( ).
    l_window_manager = l_cmp_api->get_window_manager( ).
    INSERT `Data where changed`   INTO TABLE l_text.        "#EC *
    INSERT `Do you want to save?` INTO TABLE l_text.        "#EC *
    l_popup = l_window_manager->create_popup_to_confirm(
              text            = l_text
              button_kind     = if_wd_window=>co_buttons_yesnocancel
              message_type    = if_wd_window=>co_msg_type_question
              window_title    = 'Test: Popup to confirm'
              window_position = if_wd_window=>co_center ).
    l_popup->open( ).
    Now there is one thing that I am wondering that might be causing this, but I don't know for sure. I am executing this code from a Post_Exit method of a method in the COMPONENTCONTROLLER. Since enhancements are in their own container, I don't know if this may be confusing the Web Dynpro App. However the purpose of this enhancement is to show the end user a simple confirmation popup box so that they are informed that they did a particular action. Please let me know if you any ideas. Point will be awarded for helpful answers.

    hi,
    use following code.
    DATA: lt_text type string_table.
      DATA: mr_popup_window TYPE REF TO if_wd_window.
    pop a confirmation window for display purpose
    DATA: l_window_manager TYPE REF TO if_wd_window_manager,
    l_cmp_api        TYPE REF TO if_wd_component,
    l_window         TYPE REF TO if_wd_window.
    l_cmp_api        = wd_comp_controller->wd_get_api( ).
    l_window_manager = l_cmp_api->get_window_manager( ).
    append 'DO YOU WANNA SAVE DATA' to lt_text.
    CALL METHOD l_window_manager->create_popup_to_confirm
       EXPORTING
        text                 = lt_text
        button_kind          = if_wd_window=>CO_BUTTONS_YESNO
        CLOSE_BUTTON        = ' '
        WINDOW_TITLE        = 'POPUP WINDOW'
        WINDOW_WIDTH        = '25'
        WINDOW_HEIGHT       = '50'
        WINDOW_LEFT_POSITION = 10
        WINDOW_TOP_POSITION  = 10
        WINDOW_POSITION      = '25'
    RECEIVING
        result               =    mr_popup_window      .
    associated the action handling methods with the window
    DATA: view_controller TYPE REF TO if_wd_view_controller.
    view_controller = wd_this->wd_get_api( ).
    CALL METHOD mr_popup_window->SET_WINDOW_SIZE
    EXPORTING
      WIDTH   = '150'
      HEIGHT  = '150'.
    CALL METHOD mr_popup_window->subscribe_to_button_event
       EXPORTING
         button            = if_wd_window=>co_button_yes
         action_name       =   'ON_DELETE_POPUP_YES'
         action_view       =  view_controller      .
    CALL METHOD mr_popup_window->subscribe_to_button_event
    EXPORTING
      button            = if_wd_window=>co_button_no
      action_name       = 'ON_DELETE_POPUP_NO'
      action_view       =  view_controller
      is_default_button = abap_true    .
    mr_popup_window->open( ).

  • Adding Keychain issue using Keychain Access - 10.3.9/eMac

    I recently crashed and had to erase my 10.3.9 volume.
    I'm trying to add a Keychain in a new system I installed, from a 10.3.9 library that I had backed up on a DVD, using Keychain Access. When I navigate to the Keychain folder on the DVD in the "add Keychain" dialog box, the Keychain in the folder is greyed out. The icon for that file on the DVD looks different too...it's a landscape orientation rectangle that says "exec" on it. The current Keychain has a generic document icon.
    Thanks for any help
    pauly B ;D
    eMac Mac OS X (10.3.9) 700 MHz / 384 MB / 40gig / CDR internal

    Hi
    Did you export your key chain when you had the old system, or just backed it up?
    I haven't tried this but what if you tried to copy the entire backed up copy of keychain over to its natural location on the new disk. It is owned by system, so you will be asked for password confirmation, but i think it is possible to do it in this rough way than through adding to the existing key chain (which it doesn't want to do)
    And you will need to remove the existing one first as it may resist being overwritten.
    This is speculative, but if you are brave it may successful.
    regards roam

  • Having response time issues using Studio to manage 3000+ forms

    We are currently using Documaker Studio to create and maintain our forms, of which we have thousands. Once we create the form we export it to a very old version of Documerge where it is then used in our policy production. 
    The problem is that because we have so many forms/sections, everytime we click on "SECTIONS" in Studio it takes a significant amount of time to load the screen that lists all of the sections. Many of these forms/sections are old and will never change but we want to still have access to them in the future.
    What is the best way to "backup" all these forms somewhere where they are still accessible? Ideally I think I would like to have one workspace (let's call it "PRODUCTION") that has all 3000+ forms and delete the older resources from our existing workspace (called "FORMS") so that just has the forms that we are currently working on.  This way the response time in the "FORMS" workspace would be much better. Couple questions:
    1. How would I copy my existing workspace "FORMS" (and all the resources in it) to a new workspace called "PRODUCTION"?
    2. How would I delete from the "FORMS" workspace all of the older resources?
    3. Once I am satisfied with a new form/section in my "FORMS" workspace how would I move it to "PRODUCTION"?
    4. How could I move a form/section from "PRODUCTION" back into "FORMS" in order to make corrections, or use it as a base for a new form down the road?
    5. Most importantly....Is there a better way to do this?
    Again, we are only using this workspace for forms creation and not using it to generate output...we will be doing that in the future once we upgrade from the very old Documerge on the mainframe, to Documaker Studio.
    Many thanks to any of you who can help me with this!

    However, I am a little confused on the difference between extracting and promoting. Am I correct in assuming that I would go into my PROD workspace and EXTRACT the resources that I want to continue to work on. I would then go into my new, and empty, DEV workspace and IMPORT FILES (or IMPORT LIBRARY?) using the file(s) that I created with the EXTRACT? In effect, I would have two totally separate workspaces, one called DEV and one called PROD?
    Extraction is writing a copy of a resource from the library out to disk. Promotion is copying a resource from one library to another, with the option of modifying the metadata values of the source and target resources. You would use extract in a case where you don't have access to both libraries to do a promote.
    An example promotion scenario would go something like this. You have resources in the source (DEV) that you want to promote to the target (PROD). Items to be promoted are tagged with the MODE = "To Promote". When you perform the promotion, you can select the items that you want to promote with the filter MODE="To Promote". When you perform the promotion, you can also configure Studio to set the MODE of the resource(s) in the source to be MODE="To Delete", and set the MODE of the resource(s) in the target to be MODE="" (empty). Then you can go back and delete the resources from the source (DEV) where MODE=DELETE.
    Once you have the libraries configured you could bypass the whole extract/import bit and just use promote. The source would be PROD, and the target would be DEV. During promotion, set the target MODE = "To Do", and source MODE = "In Development". In this fashion you will see which resources in PROD are currently being edited in DEV (because in PROD the MODE = "In Development"). When development is completed, change the MODE in DEV to "To Promote", then proceed with the promotion scenario described above.
    I am a bit confused on the PROMOTE function and the libraries that have the  _DEV _TEST _PROD suffixes. This looks like it duplicates the entire workspace to new libraries _PROD but it is all part of the same workspace, not two separate workspaces?  Any clarification here would be helpful.
    Those suffixes are just attached by default; these suffixes don't mean anything to Documaker. You could name your library PROD and use it for DEV. It might be confusing though ;-) The usual best practice is to name the library and subsequent tablespaces/schemas according to their use. It's possible to have multiple libraries within a single tablespace or schema (but not recommended to mix PROD and non-PROD libraries).
    Getting there, I think!
    -A

  • [Forum FAQ] How do I have Invoke-SqlCmd return a date value without adding time

    Introduction
    A select statement executed from Invoke-SqlCmd returns a value from a Date column, the value has "12:00:00 AM" appended.  The same select statement executed within SQL Server Management Studio displays the date properly without any time formatting.
    Sample data is as follows:
    How to have Invoke-SqlCmd return Date values without adding time for multiple Date type columns and pipe the output into CSV file?
    Solution
    In SQL Server 2012 or onwards, use the FORMAT() function to convert datetime values to date format when executing query from Invoke-SqlCmd. In earlier versions such as SQL Server 2008 R2, use the traditional CONVERT() function to format datetime values to
    different date formats(yyyy.mm.dd, mm/dd/yyyy, etc) when executing query from Invoke-SqlCmd. Then pipe the output of SQL query result into CSV file by specifying export-csv parameter. An example is as follows.
    Create a table named “Test_invokesqlcmd” that contains Date type columns in SQL Server.
    USE Test
    Go
    CREATE TABLE [dbo].[Test_invokesqlcmd](
        [id] [int] NOT NULL,
        [name] [varchar](20) NULL,
        [test1] [date] NULL,
        [test2] [date] NULL
    ) ON [PRIMARY]
    GO
    insert into [dbo].[Test_invokesqlcmd]
    values(1,'David','2014-10-15','2015-01-07'),(2,'Jane','2011-08-05','2012-11-7'),(3,'Crystal','2013-09-15','2010-02-24')
    Define a query string, execute it from Invoke-SqlCmd and save the query result to a CSV file.
    Scripts for SQL Server 2012:
    $query1 = @"
        use Test;
        SELECT FORMAT(test1,'d') as newtest1, FORMAT(test2,'d') as newtest2 from dbo.Test_invokesqlcmd
    write-host $query1
    Invoke-Sqlcmd -Query $query1 -ServerInstance localhost | export-csv -notypeinformation -path c:\Files\test.csv
    Scripts for SQL Server 2008 R2:
    $query2 = @"
        Use Test;
        SELECT CONVERT(varchar, test1, 102) as newtest1,CONVERT(varchar, test2, 102) as newtest2
        FROM dbo. Test_invokesqlcmd
    write-host $query2
    Invoke-Sqlcmd -Query $query2 -ServerInstance localhost | export-csv -notypeinformation -path c:\Files\test.csv
    Check the results in SQL Server PowerShell window and csv file.
    SQL Server 2012:
    SQL Server 2008 R2:
    Reference
    Using the Invoke-Sqlcmd cmdlet
    SQL Server Functions that helps to convert date and time values to and from string literals and other date and time formats
    Applies to
    SQL Server 2014
    SQL Server 2012
    SQL Server 2008 R2
    SQL Server 2008
    Please click to vote if the post helps you. This can be beneficial to other community members reading the thread.

    Cross posted. More appropriate in JSF forum so continue conversation there.
    http://forum.java.sun.com/thread.jspa?threadID=717292&messageID=4142615#4142615

  • My iMessage and Facetime won't activate, says waiting for activation. All photos and contacts are restored, using email and wifi only, no service. Only issue is date and time will not automatically set.

    My iMessage and Facetime won't activate, says waiting for activation. All photos and contacts are restored, using email and wifi only, no service. Only issue is date and time will not automatically set.

    Howdy eewebe13,
    So you have no cellular service but are on Wi-Fi yet iMessage and Facetime are waiting for activation.
    Please step through this article for that scenario.
    If you get an error when trying to activate iMessage or FaceTime - Apple Support
    Thank you for visiting Apple Support Communities.
    Nubz

  • Issues with Using Data Dashboard and Using Web Service

    After running a system for many months it has suddenly decided to not work at all.  I am using Data Dashboard to read variables on a host.  I'll outline the system here to get a baseline:
    I'm running LV 2012 SP1 f5. 
    I collect data from one Ethernet port and interfact it to another Ethernet port to form a proxy.
    I use a fixed IP address from my DSL along with port forwarding/port triggering in my router for data observation and control.
    So, what have I done so far?
    1.  Repaired my original LV 2012 SP1 and tested system.
    2.  Upgraded to LV 2012 SP1 f5 and tested system.
    3.  Ran service.msc and checked all the NI services that should be operational.  Started and stopped several of them and rebooted computer.
    4.  Deployed all my SVs (multiple times)
    5.  Disconnected second Ethernet interface becasue sometimes the variables would deploy to this IP address.
    6.  Turned off my wireless because sometimes the variables would deploy to this IP address.
    7.  Checked "Web Server Configuration" "Application Web Server" for correct port number.
    8.  Checked "Web Services Management" and under "Deployed Web Services" there is one category:  SV is marked as running.  NOTE!!  WebService is NOT listed and this could be a problem
    I can use the following to retrieve data&colon;  localhost:<port number>/sv/variable.  But when I substitute my DSL IP number, I can no longer get any data.
    So, what am I missing?  
    Thanks,
    Paul.

    Siana,
    Thanks for your response.
    I haven't touched the NI code in months.  It is running on an XP laptop and I have the Windows updates turned off.  McAfee is running on it and of course that updates regularily.  This laptop is a dedicated machine that I only use for this function, nothing else.  I haven't added or subtracted any programs for many months.
    There have been no changes to the DSL from me.  AT&T is constantly trying to get us to upgrade to U-Verse but we have resisted.  All DSL modem and router hardware is the same.  
    Confusing, huh?

  • IPhone 5 using data all the time

    My husband has had his iPhone 5 for a couple of weeks.  We have Verizon 300 mb plan, as he is mainly just using it for calls and text.  But it is using data all the time!  Today our online Verizon account is showing 59 episodes of data usage.  They are small, but still, why are they there?  All he has done is call and text.  He would like to keep the cellular data on because he texts by talking to it.  He did not send anything close to 59 texts.n was not on the Internet.
    We have turned off practically everything.  Location services, stocks, weather, email, notifications for everything except text and calls.  Stopped it from sending data to Apple.  He has added only 4 apps- cam wow, talking bird, talking cat, and free cell solitaire.  Not signed in for iCloud or Facebook or anything.

    Is Digi a CDMA carrier? or is it GSM/UTMS?
    If CDMA, that's normal. The technology was not designed for data and calling.
    If its GSM, give them a call to seek resolution.

  • How to get the most current file based on date and time stamp using SSIS?

    Hello,
    Let us assume that files get copied in a specific directory. We need to pick up a file and load data. Can you guys let me know how to get the most current file based on date and time stamp using SSIS?
    Thanks
    thx regards dinesh vv

    hi simon
    i excuted this script it is giving error..
       Microsoft SQL Server Integration Services Script Task
       Write scripts using Microsoft Visual C# 2008.
       The ScriptMain is the entry point class of the script.
    using System;
    using System.Data;
    using Microsoft.SqlServer.Dts.Runtime;
    using System.Windows.Forms;
    namespace ST_9a6d985a04b249c2addd766b58fee890.csproj
        [System.AddIn.AddIn("ScriptMain", Version = "1.0", Publisher = "", Description = "")]
        public partial class ScriptMain : Microsoft.SqlServer.Dts.Tasks.ScriptTask.VSTARTScriptObjectModelBase
            #region VSTA generated code
            enum ScriptResults
                Success = Microsoft.SqlServer.Dts.Runtime.DTSExecResult.Success,
                Failure = Microsoft.SqlServer.Dts.Runtime.DTSExecResult.Failure
            #endregion
            The execution engine calls this method when the task executes.
            To access the object model, use the Dts property. Connections, variables, events,
            and logging features are available as members of the Dts property as shown in the following examples.
            To reference a variable, call Dts.Variables["MyCaseSensitiveVariableName"].Value;
            To post a log entry, call Dts.Log("This is my log text", 999, null);
            To fire an event, call Dts.Events.FireInformation(99, "test", "hit the help message", "", 0, true);
            To use the connections collection use something like the following:
            ConnectionManager cm = Dts.Connections.Add("OLEDB");
            cm.ConnectionString = "Data Source=localhost;Initial Catalog=AdventureWorks;Provider=SQLNCLI10;Integrated Security=SSPI;Auto Translate=False;";
            Before returning from this method, set the value of Dts.TaskResult to indicate success or failure.
            To open Help, press F1.
            public void Main()
                string file = Dts.Variables["User::FolderName"].Value.ToString();
                string[] files = System.IO.Directory.GetFiles(Dts.Variables["User::FolderName"].Value.ToString());
                System.IO.FileInfo finf;
                DateTime currentDate = new DateTime();
                string lastFile = string.Empty;
                foreach (string f in files)
                    finf = new System.IO.FileInfo(f);
                    if (finf.CreationTime >= currentDate)
                        currentDate = finf.CreationTime;
                        lastFile = f;
                Dts.Variables["User::LastFile"].Value = lastFile;
                Dts.TaskResult = (int)ScriptResults.Success;
    thx regards dinesh vv

  • I cannot use data and voice at the same time.

    I cannot use data and voice at the same time.
    I am on Wifi (connected) and at the same time I am on a voice call. when I switch to my RSS feed reader it does not sync it comes out with a message cannot connect to internet, I thought it is a problem with the feed reader application, IE 10 behaves the same I cannot browse when I am on a voice call.
    This is a very basic issue, am I missing something? Please help.
    My Model is lumia 820 with the latest portico update.
    TIA
    Sandeep

    I am aware that packet data via EDGE and voice cannot happen at the same time, surprisingly when I am on voice call I cannot connect to internet via Wifi too

  • Adding time into date format

    Hi
    Is there any easier way to add time value "now" into a date format with time value 00:00
    I managed to add the time
    Value(dateVariable)+(Value(Now())-Value(Today()))
    I just wander if there is any easiest way to do that or if there is any planed options for that?
    Thanks

    Hi Brutton
    I know about this. My scenario is that I use my custom date picker where user can pick a date. For easier date picking I use date format (today) and then adding day ,month or year into that so the date formant is in time 00:00. I
    need to add now time in that date so I can sort entry by date and also by time in a collection I managed to do that with the format mentioned above but I just wander if there is also any other way to do that. We already have excellent code DateAdd where we
    can add days months and years but I can't really add time with this code. I don't think that DateAdd can add time into date format or at least I haven't figure it out yet. If not there would be nice to have A TimeAdd code then instead of calculations

  • Issues importing/"using" date/datetime in Julia. Is it even present?

    I'm trying use the Date or DateTime in a script, which requires that I user "import Dates" or "using Dates". However, it can't find the module. I checked the the file list on the package info list and it doesn't seem to be present. Could someone confirm that this is the case?
    [edit] I can confirm that I was doing everything correctly. I switch to julia-git in AUR, and its working fine after I added the path ( push!(LOAD_PATH,"/usr/share/julia/base") ). I'd still like it if someone could confirm that I'm not just looking in the wrong place.
    Last edited by nstgc (2015-02-09 00:58:01)

    Sorry for the late reply. No, this module is still not included in the installation as far as I can tell as of today. Do know that today I merely checked "/usr/share/julia/base", however last time I checked it was no where to be seen. I also tried "julia> import Dates".
    Also /usr/share/julia/base is not in the load path.
    julia> LOAD_PATH
    2-element Array{Union(ASCIIString,UTF8String),1}:
    "/usr/local/share/julia/site/v0.3"
    "/usr/share/julia/site/v0.3"
    I don't know if this is a bug or if this version just doesn't include this package.

  • Last time i used FFsync it didnt ask me about any key! there was a phrse only which it didnt work now so i generate a new code as ur guide shows me and now i lost all my data! i need them alot, i adopted on your servies :( i need my data so badly plz help

    Last time i used FFsync it didnt ask me about any key! there was a phrse only which it didnt work now so i generate a new code as ur guide shows me and now i lost all my data! i need them alot, i adopted on your servies :( i need my data so badly plz help

    Lord K.  Thank you. Yes I am within the 90 time period, however I travel Intertionally and I can not receive not make a call to Apple. I was just at the Genius Bar in Chicago and they said, don't worry about it.  It just floats out there, however, I can not recover my messages on a flash drive. I need to go back to my old computer which I don't have with me.  My messages were in folders for a lawsuit.  It is going to take an incredible amount of work for me to, you have no Idea.  We are talking thousands of pages!  I the defendent will have them during discovery so I am not so worried.  However, I can not bring them to him on a Flashdrive when I meet with him without an extraordinary amount of presssure on my part.  THis is not just some little email issue. This is suing EXPEDIA and Tripadviosr.com

Maybe you are looking for

  • BPC 7M SP6 - best practice for multi server setup

    Experts, We are considering purchasing new hardware for our BPC 7M implementation. My question is what is the recommended or best practice setup for SQL and Analysis Services? Should they be on the same server or each on a dedicated server? The hardw

  • JNA: Structure by pointer in a linked list

    Hello, I've been trying to figure this out but so far no luck. Here's what I have in C: typedef struct _strvectitem      char *szValue;      void *pData;      struct _strvectitem *pNext; } STRVECTITEM, *PSTRVECTITEM; typedef struct _strvect      unsi

  • Outlook 2010 - 64 bit, Windows 7 64 bit, doesn't work ?

    I am using Photoshop Element 8 with Windows 7 English Versuin 64 bit, I installed in the past Office 2007 32 bit and Office 2010 32 bit, with office 2007 32 bit every thing works well, I am talking about sending email through Outlook, I don't remembr

  • HT5312 there are no link to reset security question in my E mail

    i ask apple team several time how to reset security question. i know step to reset but there are no link to my e-mail. Why??  no assist

  • Code for i_step = 2 in user exit ZXRSRU01 for selection screen validation

    Hello Experts, I have BI report, in which on selection screen I have 4 formula variable. I want to check, what number user has entered in these variables and summation of these fields should not be getter than 100 or less than 100. It should be 100 o