Values of date and XMLTABLE

I have problems with the function XMLTable. I can't see the full date/time value in a date field.

It will not work
Select x1.*
from XMLTABLE ("/ DOCUMENT" passer-by xmltype (' IA < DOCUMENT > < STR > abc def </str > < NUM > 1234 < /NUM > < DT > 2013-02-17T 04: 24:02 < /DT > < / DOCUMENT > '))
VARCHAR2 (25) columns STR, PHONE number, date of DT) x 1;

However if I change the DT tag to just the date only: '2013-02-17' it works. Why Oracle used see the date/time format everything, even if its in accordance with ISO 8601?

Oracle DB: 11.2.0.3.0

Edited by: siromega May 21, 2013 13:41

>
I have problems with the function XMLTable. I can't see the full date/time value in a date field.

It will not work
Select x1.*
from XMLTABLE ("/ DOCUMENT" passer-by xmltype ('ghi def abc1234 ))

2013 02-17 T 04: 24:02
')
VARCHAR2 (25) columns STR, PHONE number, date of DT) x 1;

However if I change the DT tag to just the date only: '2013-02-17' it works. Why Oracle used see the date/time format everything, even if its in accordance with ISO 8601?

Oracle DB: 11.2.0.3.0
>
ISO 8601 "dates" do not have a component "hour". Use timestamp.

It works for me:

select x1.*
from XMLTABLE('/DOCUMENT' passing xmltype('abc def ghi1234
2013-02-17T04:24:02
') columns STR varchar2(25), NUM number, DT timestamp) x1; STR NUM DT abc def ghi 1234 2/17/2013 4:24:02.000000 AM

Tags: Database

Similar Questions

  • Concatate Date and time values in a form and don't insert

    I try to combine a date and value of a time value to a form in a datetime value submission and then insert it into a table of 8 SQL server data.

    Here are the formats

    Date: 07/03/2013

    Time: 20:07

    So somehow, I need to concatate these 2 elements and then insert the value combined with a SQL server 8 data table. (Datetime data type).

    The inserted value should look like this

    07-03-2013 20:07:00.000

    No help my brothers dear cold fusion?

    You probably want to use ParseDateTime to transform your two strings (concatenate them) into a date object.  See http://www.petefreitag.com/item/569.cfm for a useful example

  • How to interpret the data cache setting and the current value of data cache?

    How to interpret the data cache setting and the current value of data cache? We found that even, we configure a larger data cache in Essbase 2 GB for example, the current value of the data cache is always much lower. Does that indicate an activities of data at very low recovery or something else?

    Thanks in advance!

    Hello

    When a block is requested, Essbase searches the data for the block cache. If Essbase is the block in the cache, it is immediately accessible. If the block is not found in the cache, Essbase in the index for the appropriate block number and then uses the index of the block entry to retrieve from the data on the disk file. Retrieve a block requested in the data cache is faster and therefore improves performance.

    So as you say that its current value is much lower then % is very low, that a requested block is in the cache of Essbase data.

    Hope that respond you to the.

    Atul K

  • Form Validation failure: "value is not a date and time in the format"

    Hello world

    I am facing a weird problem in my custom OAF page. I'm displaying the records of a particular table through dynamic VO and dynamic array. All records appear correctly. But when I try to click on NEXT 10 records in a table, I get the error like "FAILED FORM VALIDATION: 1000 ORG CUST BO VERSION is not a date and time in the format. Just like in the screenshot below.

    DESKTOP.JPG

    Strange part of the question, if I select the columns to display not related to this day, so I only am not facing problems. If I select only dates to display and also am not facing this problem. If I use the mixture of this type varchar2 and data, I get this error.

    I tried to change the type of data but no use.

    If we close, look at the PARTY_ID error message trying to copy its data to ORG_CUST_BO_VERSION the last column. Why what's happening clue me less. Can anyone guide me on this please?

    The problem is that you use the same name for the creation of the MessageTextInputBean inside the Table.

    The name of MessageTextInputBean make it dynamic.

    ex: -.

    OAMessageTextInputBean oamessage = (OAMessageTextInputBean) createWebBean (pageContext,

    MESSAGE_TEXT_INPUT_BEAN,

    NULL,

    'text' + columnNo);

    See you soon

    AJ

  • How do rotate on a date and see the sum of the value of another column

    Hello

    I searched through the forum and cannot find a query similar to my question feels so post this new thread.

    First of all, it is probably useful indicating that I am using Oracle 10 g.

    I have a table that is used to store the details of the booking (essentially a booking system) and I would use this data to display the details of the customers stay on one line.

    The table has the following columns:
    BOOKING_ID
    CUSTOMER_ID
    DATE_OF_ARRIVAL
    NUMBER_OF_NIGHTS
    NUMBER_OF_PEOPLE
    Some example records could be:

    BOOKING_ID    CUSTOMER_ID     DATE_OF_ARRIVAL    NUMBER_OF_NIGHTS   NUMBER_OF_PEOPLE
    --------------------------------------------------------------------------------------------
    1                    201      13-JAN-2010        5                   1
    2                    202      13-JAN-2010        3                   2  
    3                    202      13-JAN-2010        4                   1
    4                    203      15-JAN-2010        2                   3
    On this basis I would like to display the output so that I can show a sum of the NUMBER_OF_PEOPLE reserved to per customer per day, as such:
    CUSTOMER_ID     13-JAN   14-JAN   15-JAN   16-JAN   17-JAN   18-JAN   19-JAN 
    -----------------------------------------------------------------------------------------
    201                   1       1        1        1        1        0        0
    202                   3       3        3        1        0        0        0
    203                   0       0        3        3        0        0        0
    I watched analytical functions in the documentation and several books of Oracle that I have, but have so far struggled to find how to make the performance desired. Even using the excellent response to the previous post on the forum, I got Re: how to count the occurrence of a date in a range I was not able to get a feasible request.

    Any help or advice would be much appreciated.

    Kind regards
    Stu

    Published by: macmanxie on January 10, 2011 21:16

    Hello

    macmanxie wrote:
    ... The suggested approach goes only to return a number if the DATE_OF_ARRIVAL corresponds to the date in the CASE statement, however I have the added complexity of wanting to show a count of all the days that the customer is booked, for, by making use of the NUMBER_OF_NIGHTS. I tried to use some of the examples provided on morganslibrary.org, for example:

    sum( CASE WHEN  TRUNC (arrival_date) between '01/13/2011' and TRUNC (arrival_date+no_of_nights) THEN nvl(no_of_people,0) ELSE 0 END) AS jan_13
    

    but this does not produce the desired result.

    You check if arrival_date is between January 13 and arrival_date + no_of_nights (as if the arrival date could all be posterior to the arrival_date + no_of_nights).
    Are not really interested in whether or not January 13 ib between arrival_date and arrival_date + no_of_nights?

    NVL ( SUM ( CASE
                    WHEN  TO_DATE ( '01/13/2011'
                           , 'MM/DD/YYYY'
                         )          BETWEEN  TRUNC (arrival_date)
                             AND       TRUNC (arrival_date) + no_of_nights
                 THEN  no_of_people
             END
           )
        , 0
        )          AS jan_13
    

    Always format your code. It is important to format your code if you are the only who who will ever read but it is even more important if you are posting on a forum like this and ask other people to read.
    Not to compare the DATEs in the strings; explicitly use a conversion function, like TO_DATE, above, where necessary.
    Both
    SUM (NVL (x, 0)) and
    NVL (SUM (x), 0) get the same results, but the latter is more effective. If you have 1000 lines, the first way is calling NVL 1000 times, but the second way is calling only once.

    If your previous thread
    Re: How to count the occurrence of a date in a range
    Gets you the right data, but it has one row for each distinct combination of customer_id and date, then you can switch it to a form that contains a line by the customer and another column for each date.

    If you need help, post CREATE TABLE and INSERT statements for some examples of data and outcomes from these data. The post you are trying better to a request, including a subquery that gets no cross-the raw table dynamic results.
    There will be a fixed number of columns in the output swing? If this is not the case, how do you deal with that? Which of these options in the thread I posted above)
    Re: County report and the sum of the number of rows by multiple columns
    ) is best for your needs? Than others is acceptable?

  • Values for timestamp default XMLTable causes ORA-01843: not one month valid

    When I try to provide a default value for a timestamp value in the function XMLTABLE, I am greeted with an error - ORA-01843: not one month valid -no matter how to give this default value. If there is a value in the XML or not is irrelavant to this bug occurs. It seems to be an incomplete correction of bug number 9745897 (thread).

    Select x.*

    Of

    XMLTable ('/ DOC' from xmltype ("< DOC > < DT > 2013-08-14T 15: 08:31 < /DT > < / DOC > '"))

    DT COLUMNS timestamp default sysdate) x;

    Select x.*

    Of

    XMLTable ('/ DOC' from xmltype ("< DOC > < DT > 2013-08-14T 15: 08:31 < /DT > < / DOC > '"))

    By default systimestamp timestamp COLUMNS DT) x;

    Select x.*

    Of

    XMLTable ('/ DOC' from xmltype ("< DOC > < DT > 2013-08-14T 15: 08:31 < /DT > < / DOC > '"))

    DT of COLUMNS timestamp default to_char (systimestamp, ' ' YYYY-MM-DD "T" HH24:MI:SS)) x;)

    Edit: somewhat more followed.

    It works:

    Select x.*

    Of

    XMLTable ('/ DOC' from xmltype ("< DOC > < / DOC > '"))

    Date of the dt of COLUMNS by default sysdate) x;

    It works, too, with the exception of its just the date and not the time

    Select x.*

    Of

    XMLTable ('/ DOC' from xmltype ("< DOC > < / DOC > '"))

    DT COLUMNS timestamp default sysdate) x;

    It does not work

    Select x.*

    Of

    XMLTable ('/ DOC' from xmltype ("< DOC > < / DOC > '"))

    By default systimestamp timestamp COLUMNS DT) x;

    ORA-01861: literal does not match the format string

    Hello

    First of all, let's check the manual for the DEFAULT clause:

    Function SQL/XML XMLTABLE in Oracle XML DB

    The optional parameter DEFAULT clause specifies the value to use when the PATH expression results in an empty sequence (or NULL ). His expr is an XQuery expression that is evaluated to produce the default value.

    According to the documentation, the DEFAULT clause must specify an XQuery expression.

    However, is false, the implementation only expects an expression that matches a string, the content is not interpreted.

    Bottom line is, if we specify directly a string, the expression is implicitly converted into one, and everyone knows how things can go when implicit conversions appear, especially when the dates or timestamps are involved.

    Now let's focus on the impact of the DEFAULT clause on the evaluation of the query.

    When a DEFAULT clause is specified, Oracle has rewritten projection differently and does not use the native format of XS: DateTime to convert the value:

    Select x.*

    Of

    XMLTable ('/ DOC' from xmltype ('))

    2013-08-14 T 15: 08:31
    ')

    DT of COLUMNS by default systimestamp timestamp

    ) x

    becomes:

    SELECT THE EXISTSNODE (VALUE(KOKBF$), '/ DOC/DT')

    WHEN 1 THEN LAUNCH (TO_TIMESTAMP (SYS_XQ_UPKXML2SQL (SYS_XQEXVAL (SYS_XQEXTRACT (VALUE(KOKBF$), '/ DOC/DT')), 50.1, 2)() as a timestamp)

    ELSE CAST (TO_TIMESTAMP (TO_CHAR (SYSTIMESTAMP (6)), 'SYYYY-MM-DD "T" HH24:MI:SSXFF') AS timestamp)

    END "DT".

    TABLE ("SYS". "XQSEQUENCE"(EXTRACT ("SYS"." XMLTYPE"(")

    2013-08-14 T 15: 08:31
    (((,'/ DOC'))) ' KOKBF$ '.

    See the red part: it does not use the format parameter, the conversion depends on NLS session parameters.

    When there is no DEFAULT clause, the TO_TIMESTAMP function uses an explicit format:

    Select x.*

    Of

    XMLTable ('/ DOC' from xmltype ('))

    2013-08-14 T 15: 08:31
    ')

    Dt timestamp - default systimestamp COLUMNS

    ) x

    rewritten to:

    SELECT CAST)

    TO_TIMESTAMP)

    SYS_XQ_UPKXML2SQL (SYS_XQEXVAL (SYS_XQEXTRACT (VALUE(KOKBF$), '/ DOC/DT'), 0,0,20971520, 0), 50.1, 2)

    "SYYYY-MM-DD"T"HH24:MI:SSXFF"

    )

    BY timestamp - default systimestamp

    ) "DT".

    TABLE ("SYS". "XQSEQUENCE"(EXTRACT ("SYS"." XMLTYPE"(")

    2013-08-14 T 15: 08:31
    (((,'/ DOC'))) ' KOKBF$ '.

    So yes, maybe there is a bug here.

    Edit: somewhat more followed.

    It works:

    Select x.*

    Of

    XMLTable ('/ DOC' from xmltype (""))

    Date of the dt of COLUMNS by default sysdate) x;

    Actually no, it does not work. Certainly, maybe it produces no error, but the result is incorrect.

    As explained, the conversion is based on the NLS (NLS_DATE_FORMAT in this case) session:

    SQL > show nls_date_format settings

    VALUE OF TYPE NAME

    ------------------------------------ ----------- ------------------------------

    string of NLS_DATE_FORMAT JJ/MM/RR

    SQL >

    SQL > select sysdate to double;

    SYSDATE

    --------

    16/08/13

    SQL > select x.*

    2 from

    3 xmltable ('/ DOC' passing xmltype (""))

    4 COLUMNS dt date default sysdate) x;

    DT

    --------

    13/08/16

    Oracle first converts SYSDATE to a string using current NLS_DATE_FORMAT, having for result Aug 16, 13 '

    Then this string is converted to a DATE as XS: date is 'YYYY-MM-DD' leading 13/08/16 (13 August, 0016) which is incorrect.

    The obvious solution to this problem is to control how Oracle converts implicitly string to timestamp format:

    SQL > alter session set NLS_TIMESTAMP_FORMAT = "YYYY-MM-DD"T"HH24:MI:SS."

    Modified session.

    SQL > select x.*

    2 from

    3 xmltable ('/ DOC' from xmltype ('))

    2013-08-14 T 15: 08:31
    ')

    4 dt of systimestamp default timestamp COLUMNS

    (5) x;

    DT

    ---------------------------------------------------------------------------

    2013-08-14 T 15: 08:31

    SQL > select x.*

    2 from

    3 xmltable ('/ DOC' passing xmltype (""))

    4 dt of COLUMNS by default systimestamp timestamp) x;

    By default systimestamp timestamp COLUMNS DT) x

    *

    ERROR on line 4:

    ORA-01861: literal does not match the format string

    SQL > select x.*

    2 from

    3 xmltable ('/ DOC' passing xmltype (""))

    Cast of default timestamp COLUMNS dt (systimestamp timestamp) 4) x;

    DT

    ---------------------------------------------------------------------------

    2013 08-16 T 12: 32:58

  • Extraction of XML data and display new line

    I have a table named, SAPDATABROWSER, which has several columns and lines. A column named SAPTEXT (data type: CLOB) consist of xml data. Each XML data are different in terms of number of nodes, but has the same following structure:

    < SAP_BAPI_PROP >
    < SelectedProperty >
    < structure >
    < field > < / field >
    < length > < / length >
    < FieldValue > < / FieldValue >
    < type > < / Type >
    < priority > < / priority >
    < / structure >
    < / SelectedProperty >
    < / SAP_BAPI_PROP >

    So now, what I would do is, to extract the values: field, FieldValue and the length of each line (total 72) and see the result as follows.

    Length of track FieldValue
    XXXX YYYY ZZZZ
    PPPP QQQQ RRRR
    AAAA BBBB CCCC
    MMMM OOOO NNNN

    Again, each line (total 72) has several XML Data nodes, IE there are several nodes FieldType, length and field and no two XML data/line are similar!

    I use the following code:

    SELECT
    EXTRACT (xmltype (saptext), ' / SAP_BAPI_PROP/SelectedProperty/Structure/Field / text () ');
    EXTRACT (xmltype (saptext), ' / SAP_BAPI_PROP/SelectedProperty/Structure/Length / text () ');
    EXTRACT (xmltype (saptext), ' / SAP_BAPI_PROP/SelectedProperty/Structure/FieldValue / text () ')
    OF sapdatabrowser;

    The code above produces the following result:

    SAP_BAPI_PROP/.../Field/Text () SAP_BAPI_PROP/.../Length/text () SAP_BAPI_PROP/.../FieldValue/text)
    1 XXXXPPPPAAAA YYYYQQQQBBBB ZZZZRRRRCCCC
    2 MMMM OOOO NNNN


    Any suggestions? Thank you very much. :)

    Based on your sample data:

    SQL> select x.*
      2  from sapdatabrowser t
      3     , xmltable(
      4         '/SAP_BAPI_PROP/SelectedProperty/Structure'
      5         passing xmltype(t.saptext)
      6         columns field_name  varchar2(30) path 'Field'
      7               , field_len   varchar2(30) path 'Length'
      8               , field_val   varchar2(30) path 'FieldValue'
      9       ) x
     10  ;
    
    FIELD_NAME                     FIELD_LEN                      FIELD_VAL
    ------------------------------ ------------------------------ ------------------------------
    X                              Y                              Z
    P                              Q                              R
    A                              B                              C
    M                              N                              O
     
    

    (adjust the projected if necessary data types)

  • XMLQUERY() and xmltable()

    Hello

    I have xml in the formatt:
    <? XML version = "1.0" encoding = "UTF-8"? >
    < csg >
    < ecrminput id = "1" >
    < xml id = "001" title = "CustomerId" > CustomerId11 < / xml >
    < xml id = "002" title = "ContactId" > ContactId11 < / xml >
    < xml id = '003' title = "CustomerNo" > CustomerNo11 < / xml >
    < xml id = "004" title = 'Branch' > Branch11 < / xml >
    < xml id = "500" title = "Attribute" > Attribute11 < / xml >
    < xml id = "500" title = "Attribute" > Attribute11a < / xml >
    < xml id = "500" title = "Attribute" > Attribute11b < / xml >
    < / ecrminput >
    < ecrminput id = "2" >
    < xml id = "0011" title = "CustomerId" > CustomerId22 < / xml >
    < xml id = '0021' title = "ContactId" > ContactId22 < / xml >
    < xml id = "0031" title = "CustomerNo" > CustomerNo2 < / xml >
    < xml id = "0041" title = 'Branch' > Branch2 < / xml >
    < xml id = "5001" title = "Attribute" > Attribute22 < / xml >
    < xml id = "5002" title = "Attribute" > Attribute22a < / xml >
    < xml id = "5003" title = "Attribute" > Attribute22b < / xml >
    < / ecrminput >
    < / csg >

    I have it loaded into an xmltype and am now trying to extract the data.

    Does anyone know why the 2 Select statements return different results?

    Select eid, id, title, value
    of xml_talent_tickets.
    XMLTABLE
    (
    "/ csg/ecrminput.
    by the way OBJECT_VALUE
    columns
    path of varchar2 (200) EID "@id."
    path XMLTYPE XML "xml".
    ) ec,
    XMLTABLE
    (
    ' / xml'
    in passing ec.xml
    columns
    Path of varchar2 (200) ID "@id."
    Path of VARCHAR2 (64) TITLE "@title."
    Path of VARCHAR2 VALUE (64) '.'
    );

    This returns:

    VALUE OF EID ID
    1 1 CustomerId11 CustomerId
    1 2 ContactId11 ContactId
    1 3 CustomerNo CustomerNo11
    1 branch 4 Branch11
    1 500 attribute Attribute11
    1 500 attribute Attribute11a
    1 500 attribute Attribute11b
    2 11 CustomerId CustomerId22
    2 21 ContactId ContactId22
    2 31 CustomerNo CustomerNo2
    2 branch 41 Branch2
    2 5001 attribute Attribute22
    2 5002 attribute Attribute22a
    2 attribute Attribute22b 5003

    that is what I want and

    Select eid, id, title, value
    of xml_talent_tickets.
    XMLTABLE
    (
    "for $i in/csg/ecrminput return $i"
    by the way OBJECT_VALUE
    columns
    path of varchar2 (200) EID "@id."
    path XMLTYPE XML "xml".
    ) ec,
    XMLTABLE
    (
    "for $i in /xml return $i.
    in passing ec.xml
    columns
    Path of varchar2 (200) ID "@id."
    Path of VARCHAR2 (64) TITLE "@title."
    Path of VARCHAR2 VALUE (64) '.'
    )

    This returns:

    VALUE OF EID ID
    1 1 CustomerId11 CustomerId
    1 2 ContactId11 ContactId
    1 3 CustomerNo CustomerNo11
    1 branch 4 Branch11
    1 500 attribute Attribute11
    1 500 attribute Attribute11a
    1 500 attribute Attribute11b
    2 1 CustomerId11 CustomerId
    2 2 ContactId11 ContactId
    2 3 CustomerNo CustomerNo11
    2 4 Branch11 branch
    2 500 attribute Attribute11
    2 500 attribute Attribute11a
    2 500 attribute Attribute11b

    that is not what I want. as you can see the details in the field ID, title and value all belong to the first type ec.xml.

    I want to pursue the ' for * in ' route because I need to add a where clause clause. "

    Any ideas what I need to do for the second query to return the results of the first?

    What version of Oracle (4 digits)? I ran the following on 10.2.0.4 and 11.1.0.6 and got the same good results on both.

    Connected to Oracle Database 10g Enterprise Edition Release 10.2.0.4.0 
    
    SQL> create table xml_talent_tickets of xmltype
      2  /
    
    Table created
    
    SQL>
    SQL> insert into xml_talent_tickets
      2  values ('
      3  
      4  
      5  CustomerId11
      6  ContactId11
      7  CustomerNo11
      8  Branch11
      9  Attribute11
     10  Attribute11a
     11  Attribute11b
     12  
     13  
     14  CustomerId22
     15  ContactId22
     16  CustomerNo2
     17  Branch2
     18  Attribute22
     19  Attribute22a
     20  Attribute22b
     21  
     22  ');
    
    1 row inserted
    
    SQL>
    SQL> select eid, id, title, value
      2  from xml_talent_tickets,
      3       XMLTABLE('/csg/ecrminput'
      4                passing OBJECT_VALUE
      5                columns
      6                eid varchar2(2) path '@id',
      7                xml XMLTYPE path 'xml') ec,
      8       XMLTABLE('/xml'
      9                passing ec.xml
     10                columns
     11                ID varchar2(5) path '@id',
     12                TITLE VARCHAR2(20) path '@title',
     13                VALUE VARCHAR2(20) path '.');
    
    EID ID    TITLE                VALUE
    --- ----- -------------------- --------------------
    1   001   CustomerId           CustomerId11
    1   002   ContactId            ContactId11
    1   003   CustomerNo           CustomerNo11
    1   004   Branch               Branch11
    1   500   Attribute            Attribute11
    1   500   Attribute            Attribute11a
    1   500   Attribute            Attribute11b
    2   0011  CustomerId           CustomerId22
    2   0021  ContactId            ContactId22
    2   0031  CustomerNo           CustomerNo2
    2   0041  Branch               Branch2
    2   5001  Attribute            Attribute22
    2   5002  Attribute            Attribute22a
    2   5003  Attribute            Attribute22b
    
    14 rows selected
    SQL> select eid, id, title, value
      2  from xml_talent_tickets,
      3       XMLTABLE('for $i in /csg/ecrminput return $i'
      4                passing OBJECT_VALUE
      5                columns
      6                eid varchar2(2) path '@id',
      7                xml XMLTYPE path 'xml') ec,
      8       XMLTABLE('for $i in /xml return $i'
      9                passing ec.xml
     10                columns
     11                ID varchar2(5) path '@id',
     12                TITLE VARCHAR2(20) path '@title',
     13                VALUE VARCHAR2(20) path '.');
    
    EID ID    TITLE                VALUE
    --- ----- -------------------- --------------------
    1   001   CustomerId           CustomerId11
    1   002   ContactId            ContactId11
    1   003   CustomerNo           CustomerNo11
    1   004   Branch               Branch11
    1   500   Attribute            Attribute11
    1   500   Attribute            Attribute11a
    1   500   Attribute            Attribute11b
    2   0011  CustomerId           CustomerId22
    2   0021  ContactId            ContactId22
    2   0031  CustomerNo           CustomerNo2
    2   0041  Branch               Branch2
    2   5001  Attribute            Attribute22
    2   5002  Attribute            Attribute22a
    2   5003  Attribute            Attribute22b
    
    14 rows selected
    
    SQL> 
    

    I shorten the length of your columns here for display purposes only. To keep the formatting as I did, see the FAQ at the top right on how to use the tag {code} (with no space).

    Published by: A_Non on July 22, 2010 10:55
    Found your other post on this question came so that it looks like you
    Oracle version: Oracle Database 10g Release 10.2.0.1.0
    Can upgrade you as suggested Mark in {: identifier of the thread = 1096784}?

  • Evil of the formats of date and currency in the Sierra

    I'm on MacOS in English, but I want the region settings to reflect the country I live in.

    After the passage of El Capitan in Sierra, date and currency formats broke. For example, if you set the region of Finland, the date format should be 26.9.2016 instead of 26/09/2016. Also the currency symbol must appear after the value, 4 €567,89 instead of €4 567,89.

    Days of week and months are untranslated.

    Have you checked the tab 'Advanced' for date and time formats?

    Just after the upgrade, I found that the short format for the date has been reset to include slashes, whereas I had previously removed them.

    My region is set to the Germany, but with the main system language set to English, the months and days of the week are in English. I can't find a way to change this.

  • Automatically set to the Date and time does not

    Date and time settings on my iPad Air set them automatically does not work? When I turn it out it will allow me to choose a city (Knoxville).

    When I turn it on with (location settings) it just turns and turns?

    Any ideas?

    Hello and welcome to Apple Support communities,

    This problem may be caused by a number of things, most often the cause is the device not being able to contact the time server. Here are the instructions from Apple supported for this problem, as well as a link to the appropriate article.

    Follow these steps, after each step:

    1. Make sure you have the latest version of iOS.
    2. Automatically turn on set in settings > general > Date & time. This will automatically put your date and time based on your time zone.
    3. Make sure that your time zone is set correctly. Tap Settings > general > Date & time > time zone.

    If you still have any questions affecting your date, time, or time zone, you can automatically disable in the settings > general > Date & time and manually set the time and time zone. Or contact your carrier.

    The option to enable the value automatically may not be available in all countries or all shells.

    If the time on your iOS device does not go after a sync with your computer, the computer may be time wrong. Check the time on your computer in system preferences > Date & time. You can select "Set date and time automatically."

    Support the Article HT203483

    Get help with the date and time on your iPhone, iPad and iPod touch - Apple Support

    Of course, if the time of your carrier server cannot connect the other option is to manually set the date and time until the carrier server are again available.

    Hope you helps out.

    Kind regards

    Peter.

  • AppleScript set the string to date and add 30 minutes

    I am filling 2 boxes of time on a website in Safari, using Applescript from buttons selected by the user.

    My current Applescript is:

    Value dialog box to display the dialog box buttons ' when did your first departure case? {"07:30, ' 08:00, ' 08:30" "" "}

    definition of the first button returned of the result

    inputByName ("time 1", 0, start)

    the value of test for '07:30 ' - assuming that the user has selected '07:30 ' in the dialog box

    Test date - do not know how to assign 07:30 as an hour

    Finishing to test set + (30 * minutes)

    inputByName ("2", 0, finishing)

    The error return is number 'Invalid date and time date 07:30 < < script > >.' -30720

    Any help would be greatly appreciated!

    Thank you

    s

    You must use a complete date in the date/time of your machine settings.  A simple way is to simply get the current date (which returns a full date object) and manipulate that, for example:

    tell (current date)
      set its time to (7 * hours) + (30 * minutes)
      set someDate to it
    end tell
    return time string of someDate
    
  • The batch change date and time

    I have a lot of photos which, for some reason, have lost their correct dates and hours of creation, so I was eager to correct in an easy and enjoyable way.  I unfortunately discovered that Photos is not the batch option to change that used to be in iPhoto.

    When you try to find a solution to my problem, I fell on this batch Change Date and time on a fixed Date, which works well, but not quite how I want it.  What I want to do, that's exactly what the script above does, but rather than increment by 1 minute of each photo, I want to increment by 1 second intervals by photo.

    Having not really used AppleScript before, I tried to change the references to the 'minutes' to 'seconds' but that did not work.  Is it possible to do using above seconds instead of minutes?

    Any guidance would be greatly appreciated.  Thank you.

    Just delete the text "" * minutes ' in the lines where the date is changed. "

    Then time will be incremented seconds.

    For example, for the first version of the script use:

    the value timeIncrement to 1 - increment of time in seconds

    (* select at least 2 images in Photos *)

    say application 'Photos '.

    activate

    game imageSel for (get selection)

    if ({ is } imageSel) or (the length of imageSel < 2) then

    error "Please select at least two images."

    on the other

    defined first_image to the point 1 of the imageSel

    the value first_date to (the date of first_image) as date of

    Repeat with I from 2 to the County of imageSel

    put next_image to the point I of imageSel

    the value next_date to (the date of next_image) as date of

    the value time_difference to (first_date - next_date) + ((i-1) * timeIncrement)

    say next_image

    the value le Date of next_image to (next_date + time_difference) as date of

    end say

    end Repeat

    end if

    return "Set the date and time of" & (the length of the imageSel) & 'photos. The last date is "& ((the date of next_image) as date)"

    end say


  • Satellite Pro 6100 - how to change the date and time in the BIOS

    Hello

    I received a satellite pro 6100 that had not been used for some time. Windows does not work then he reinstalled with the good drive.

    When I try and windows 'enable', I get the error 32777 and the laptop is unable to connect with the activation servers that a google leads to believe me that the date and time are incorrect in the bios.

    I know that Press esc to access the bios but there is no option to change the date and time in there. I put the date / the correct time in windows, but this does not seem to synchronize with the bios. I've updated to the latest version of the bios, but this is not enough.

    How can I change or update the time in the bios?

    Thank you

    Hello

    I doubt this time and date setting BIOS does affect Windows activation time Windows doesn t affect it in my opinion. There must be another reason for this problem.
    You can activate Windows by phone?

    Normally the date and time in the BIOS can change you if you mark the date or time, and then press on + or - to change this. Sometimes you have to press PageDown/to the top according to the model of BIOS or laptop.
    Usually in the configuration of the BIOS you will find a brief info how changing the values.

    Check this box!

  • Tecra M5 does not record the date and time - battery RTC or CMOS checksum is inconsistent

    My Tecra M5 PTM50E reverend new does not record the date and time. I loaded RTC battery for 8 hours when electricity is on in the said user's manual. I don't know where is the problem. The BIOS settings are respect after power is on.

    When I change any value in the BIOS, the changes are saved properly but date & time system restored to their value 01/01/2000, 00:00 every time when I get out of turning off more of 2-3 min. Message "RTC battery is low or CMOS checksum is inconsistent.

    Press [F1] to set Date/time"does not appear when I power on the computer. Any suggestions?

    Hi guys

    Usually this problem appears only if the CMOS (real time clock) battery is empty or corrupted.
    The real time clock battery powers the internal clock in real time and calendar. It also maintains the system configuration. If the RTC battery is completely discharged, the system loses these data and the real-time clock. In this case, the message RTC battery is low or CMOS checksum is inconsistent appears.

    So I see only two possibilities:
    Either you will charge the battery for real-time clock, or you ask the technician for replacement.

    Generally, the battery must be completely charged after 8-9 hoers but try to connect the laptop to the power adapter for a long time.
    If it will not help solve the problem if you contact the ASP for the RTC battery replacement.

  • Adding a date and time to create a channel in a data plugin

    I would like to preface this question with the fact that I am new to VBS programming.  What I want to do is to create a plugin. Most of it is done, but I'm having a problem with the addition of two times to a.  I have a text file that stores the date and time separated by a tab character.  This file format was designed to excel.  When I bring him both the date and time are in different channels and I can not figure out a way to add both and either replace them or even place it in a separate variable.  Here is an example.

    Chan (1) contains the date, Chan (2) contains both.  This statement, which places the data in the string is:

    The StandChannels value (0). Values (k) = Chan (1). Values (i)

    I tried:

    The StandChannels value (0). Values (k) = Chan (1). Values (i) + Chan (2). Values (i)

    error: object doesn't support this property or method

    or

    Chan (1). Values (i) = Chan (1). Values (i) + Chan (2). Values (i)

    error: object doesn't support this property or method

    I tried several other iterations and have had no success.  This seems to be an easy task, Miss me probably something simple.

    Hi Eric,.

    The first problem is that your datetime format string was wrong, you need to use:

    File.Formatter.TimeFormat = "MM/DD/YY SS.fff.

    Or maybe if your year is first of all it must be:

    File.Formatter.TimeFormat = "YY/MM/DD SS.fff.

    The second question was slippery.  The newsgroups (0) you throw combines the ProcessedChannel values correctly, but you were not successfully picking off those that you wanted to leave Chan (0).  I don't really know why the method you were using did not work, but I found a similar one that does.  Note that I've only changes part SUB New_File (file, ChanNames) of the code, not the SUB Previous_File (file, ChanNames) part of the code (got tired of typing).

    Brad Turpin

    Tiara Product Support Engineer

    National Instruments

Maybe you are looking for

  • Several updates have been installed successfully, but it keeps asking me to install them again

    I have 5 updates that have already been installed successfully.  I get a notification that the updates are ready to install - I installed them again - once again successfully, and once again his revealing e here are new updates to install(2468871, 26

  • BBM lost my smartphone

    Hi all I'm using bbm for android on my smartphone (not a phone smart blackberry) and unfortunately it was stolen... so can I use the same code pin/email on my new camera? and how can I delete/disable my account on my device stolen, just to make sure

  • NVIDIA GT230 No signal.

    Hi all I purchaced a computer HP a year ago and I had problems with the video card since I got it. It's a NVIDIA GT230, which is an OEM card. The problem is when I play games, even if it is games 10 years ago, triggers my graphics card and no signal

  • not able to find the name of data source while deploying

    Hi allUsers looking to deploy the application SOA project. It gets the error below.Error: "Description of the Exception: could not acquire the data source [jdbc/DEMO_DB_ADAPTER]. "Internal exception: javax.naming.NameNotFoundException: could not reso

  • Access a specific layer in a nested group

    OK honestly I feel a bit silly to ask this question, because it SHOULD be easy, but I simply cannot understand the proper syntax to do this. I have a layer I try to directly access a nested group, it is structured as:All the layers-> water-> waterWhe