Convert time GMT AEST(australian timing) in SQL

I once solved based on the field. How to convert time resolved GMT WAS in where condition?

Hi Gayathri Venugopal,

Gayathri Venugopal wrote:

I once solved based on the field. How to convert time resolved GMT WAS in where condition?

You can do something like this:

select from_tz(to_timestamp('2015-08-18 11:30:05','yyyy-mm-dd hh24:mi:ss'), 'UTC')
at time zone 'Australia/West' from dual

OR

select from_tz(to_timestamp('2015-08-18 11:30:05','yyyy-mm-dd hh24:mi:ss'), 'UTC')
at time zone 'Australia/Melbourne' from dual

Don't know your data/settings NLS session, so it would not be a perfect solution, I guess.

In addition, this issue concerns mainly SQL if you can post in the appropriate forum: SQL

I hope this helps!

Kind regards

Kiran

Tags: Database

Similar Questions

  • Convert EST GMT

    Hello


    How can I convert the time zone IS in the zone GMT and want to have the day light economy adjusted automatically.
    Is new_time will take care of day light, save the changes?

    I tried from_tz, but does not receive time GMT.


    SELECT FROM_TZ (CAST (TO_DATE(sysdate, 'dd/mm/yyyy HH24:MI:SS') AS TIMESTAMP), "U.S. / Eastern'") to the TIMEZONE "GMT" From_TZGmtTime,.
    TO_CHAR (new_time (sysdate, 'IS', 'GMT'), 'hh24:mi:ss of mon-dd-yyyy') New_TimeGmtTime,
    To_char(sysdate,'dd-mon-YYYY HH24:mi:ss') EST_LocalTime
    FROM DUAL;

    FROM_TZGMTTIME
    _______________________________
    04.56.00.000000000 JULY 6, 11 AM GMT


    NEW_TIMEGMTTIME
    ___________________
    July 6, 2011 17:23:55


    EST_LOCALTIME
    _______________________
    July 6, 2011 12:23:55


    From_Tz both New_Time does not give me time GMt, the hour GMT, when I run this query is 16:23

    Thank you

    Ben

    Look at your request:

    To_date (sysdate, ' dd/mm/yyyy HH24:MI:SS)

    Does this make any sense? Not really. To_date first parameter is a string. You pass a date. As a result, SYSDATE is implicitly converted to a string using format default date that most likely does not include the part default time, then on 00:00:00. See the difference:

    SQL> SELECT FROM_TZ(CAST(TO_DATE(sysdate, 'dd/mm/yyyy HH24:MI:SS') AS TIMESTAMP), 'US/Eastern') AT TIME ZONE 'GMT' From_TZGmtTime ,
      2  to_char(new_time(sysdate,'EST','GMT'),'dd-mon-yyyy hh24:mi:ss') New_TimeGmtTime,
      3  To_char(sysdate,'dd-mon-yyyy hh24:mi:ss') EST_LocalTime
      4  FROM DUAL ;
    
    FROM_TZGMTTIME                                                              NEW_TIMEGMTTIME      EST_LOCALTIME
    --------------------------------------------------------------------------- -------------------- --------------------
    06-JUL-11 04.56.00.000000 AM GMT                                            06-jul-2011 18:16:49 06-jul-2011 13:16:49
    
    SQL> SELECT FROM_TZ(CAST(TO_DATE(TO_CHAR(sysdate, 'dd/mm/yyyy HH24:MI:SS'), 'dd/mm/yyyy HH24:MI:SS') AS TIMESTAMP), 'US/Eastern') AT TIME ZONE 'GMT' From_TZGmtTime ,
      2  to_char(new_time(sysdate,'EST','GMT'),'dd-mon-yyyy hh24:mi:ss') New_TimeGmtTime,
      3  To_char(sysdate,'dd-mon-yyyy hh24:mi:ss') EST_LocalTime
      4  FROM DUAL ;
    
    FROM_TZGMTTIME                                                              NEW_TIMEGMTTIME      EST_LOCALTIME
    --------------------------------------------------------------------------- -------------------- --------------------
    06-JUL-11 05.17.26.000000 PM GMT                                            06-jul-2011 18:17:26 06-jul-2011 13:17:26
    
    SQL> 
    

    Now new_time does not DST unless you say it explicitly:

    SQL> SELECT to_char(new_time(trunc(sysdate),'EST','GMT'),'dd-mon-yyyy hh24:mi:ss') New_TimeGmtTime,
      2         to_char(new_time(trunc(sysdate),'EDT','GMT'),'dd-mon-yyyy hh24:mi:ss') New_TimeGmtTime_DST,
      3         to_char(trunc(sysdate),'dd-mon-yyyy hh24:mi:ss') EST_LocalTime
      4   FROM DUAL
      5  /
    
    NEW_TIMEGMTTIME      NEW_TIMEGMTTIME_DST  EST_LOCALTIME
    -------------------- -------------------- --------------------
    06-jul-2011 05:00:00 06-jul-2011 04:00:00 06-jul-2011 00:00:00
    
    SQL> 
    

    SY.

  • Convert Date GMT

    Hello! Can I convert the time GMT (String) like this
    "Friday, November 25, 2011 12:13:14 GMT.
    to date the object except String manually analysis?
    It does not scare me, but maybe there is a simpler way?

    Try using the HTTPDateParser API:

    http://www.BlackBerry.com/developers/docs/5.0.0api/NET/rim/device/API/IO/http/HttpDateParser.html

    E.

  • SQL * more the 'timing' in SQL Developer command

    I installed SQL Developer version 4.1.1.19. In the sql worksheet, how can I use SQL * more order 'timing' in a script to see a time elapsed SQL? The "Timing" on 'set' did not return any info after running SQL, and 'calendar beginning mon_timer' back 'command Timing is obsolete. Help, please.

    Thank you

    • As you can see, there is no calendar information in the script output log.
    • Then I tried on the discussion forum, found it can be enabled in "tool > preference > Database > startup script" and set as startup script:

    Set serveroutput on

    set timing on

    • However, 2 questions are:
    1. the calendar that he returned is NOT the elapsed time of my stored procedure to run. He simply choose the 2 time points its time, before and not after MS point run. Set timing on is therefore not a solution for me.
    2. He did not follow the instructions in the startup script. After that I put the calendar in the startup script, stop & restart SQL Developer, same laptop charging, timing still on. The only way to turn off now is to configure it to NOT use

    any startup script.

    • Then I developed my own coding as a solution:

    3. control of the COIL

    VAR bv_start_ts VARCHAR2 (30)

    VAR bv_end_ts VARCHAR2 (30)

    VAR bv_elps_ts VARCHAR2 (30)

    DECLARE

    v_start_ts VARCHAR2 (30);

    BEGIN

    SELECT TO_CHAR (SYSTIMESTAMP, 'yyyymmddfxDyhh24miss.ff6') INTO v_start_ts FROM DUAL;

    : bv_start_ts: = v_start_ts;

    END;

    /

    IMPRESSION bv_start_ts

    EXEC pmsmmi.rpt.rpt_ethncty_race_smry (15);

    DECLARE

    v_end_ts VARCHAR2 (30);

    BEGIN

    SELECT TO_CHAR (SYSTIMESTAMP, 'yyyymmddfxDyhh24miss.ff6') INTO v_end_ts FROM DUAL;

    : bv_end_ts: = v_end_ts;

    END;

    /

    IMPRESSION bv_end_ts

    EXEC: bv_elps_ts: = TO_CHAR (TO_TIMESTAMP (: bv_end_ts, 'yyyymmddfxDyhh24miss.ff6')-TO_TIMESTAMP (: bv_start_ts, 'yyyymmddfxDyhh24miss.ff6'), 'hh:mi:ss.ff6');

    IMPRESSION bv_elps_ts

    SPOOL OFF

    • Then I got what I want, the answer is in the 'PRINT ': bv_elps_ts

    SQL > VAR bv_start_ts VARCHAR2 (30)

    SQL > VAR bv_end_ts VARCHAR2 (30)

    SQL > VAR bv_elps_ts VARCHAR2 (30)

    SQL > DECLARE

    v_start_ts VARCHAR2 (30);

    BEGIN

    SELECT TO_CHAR (SYSTIMESTAMP, 'yyyymmddfxDyhh24miss.ff6') INTO v_start_ts FROM DUAL;

    : bv_start_ts: = v_start_ts;

    END;

    /

    PL/SQL procedure successfully completed.

    Elapsed time: 00:00:00.031

    SQL > PRINT bv_start_ts

    BV_START_TS

    -----------

    20150702Thu112617.775545

    SQL > EXEC pmsmmi.rpt.rpt_ethncty_race_smry (15)

    PL/SQL procedure successfully completed.

    SQL > DECLARE

    v_end_ts VARCHAR2 (30);

    BEGIN

    SELECT TO_CHAR (SYSTIMESTAMP, 'yyyymmddfxDyhh24miss.ff6') INTO v_end_ts FROM DUAL;

    : bv_end_ts: = v_end_ts;

    END;

    /

    PL/SQL procedure successfully completed.

    Elapsed time: 00:00:00.062

    SQL > PRINT bv_end_ts

    BV_END_TS

    ---------

    20150702Thu112630.805786

    SQL > EXEC: bv_elps_ts: = TO_CHAR (TO_TIMESTAMP (: bv_end_ts, 'yyyymmddfxDyhh24miss.ff6')-TO_TIMESTAMP (: bv_start_ts, 'yyyymmddfxDyhh24miss.ff6'), 'hh:mi:ss.ff6')

    PL/SQL procedure successfully completed.

    SQL > PRINT bv_elps_ts

    BV_ELPS_TS

    ----------

    + 00:00:13.030241000 000000

    SQL > SPOOL OFF

  • Convert .xls in .csv file using pl/sql or any other method (oracle 9i)

    Oracle9i Enterprise Edition Release 9.2.0.8.0 - 64 bit Production

    With partitioning, OLAP and Oracle Data Mining options

    Release 9.2.0.8.0 - Production jserver

    10.1.2.0.2 generator

    ORACLE Server Release 10.1.0.4.2

    Oracle 10.1.2.0.2 procedure generator

    Oracle ORACLE PL/SQL V10.1.0.4.2 - Production

    Oracle 10.1.0.4.0 Production CORE

    Integration Services 10.1.2.0.2 tools Oracle

    Space common tools Oracle 10.1.2.0.2

    Oracle Toolkit 2 for 32-bit Windows, 10.1.2.0.2 platforms

    Resource object 10.1.2.0.2 store

    Oracle Help 10.1.2.0.2

    Oracle Sqlmgr 10.1.2.0.2

    Query Oracle 10.1.2.0.2 - Production Designer

    PL/SQL Editor (c) WinMain Software (www.winmain.com), v1.0 (Production)

    Oracle ZRC 10.1.2.0.2

    Oracle XML Developers Kit 10.1.0.4.2 - Production

    Virtual graphics system Oracle 10.1.2.0.2

    Image of Oracle 10.1.2.0.2

    Widget media Oracle 10.1.2.0.2

    The GUI utility 10.1.2.0.2 tools Oracle

    I had seen a very old post of 2009.

    Convert .xls in .csv file using pl/sql

    I know that it s a long time but just wanted to know if there is a way to convert excel .csv.

    I have a directory say 'F:\purple_top\ '. I'll get the .xls file in this directory. I need to change to .csv and tables load external oracle. Any ideas or advance coding on it since 2009 so far?

    A few other options might be:

    • Java code, which can be used from within Oracle, which makes use of utility libraries (e.g. Aspose.Cells) open source (for example Apache POI) or "save under" CSV, or read the source cells and their output to a CSV file.
    • COM Automation, using available open source (for example, JACOB or j-interop) or commercial libraries, which can automate Excel to open a XLS file and "Save as" a CSV file. In addition, Oracle has a feature of COM Automation (available since version 8 but abandoned after Oracle 11g). I have successfully used this read (non-macro-enabled) Excel files in PL/SQL.
    • Other approaches using Perl or PHP can be found by googling 'convert xls to csv.

    Gerard

  • Convert time VBI

    Hi all

    Is it possible to convert the system clock for timing IST?

    so far,.

    nf = new Date();
    nfD = nf.getDate();    nfM = nf.getMonth();    nfY = nf.getFullYear();    nfH = nf.getHours();    nfMi = nf.getMinutes();    nfSec = nf.getSeconds();
    
    var currentTime = nfH+" : " + nfMi+" : " + nfSec;
    alert("currentTime: " + currentTime)
    

    Screenshot of output:

    Screen Shot 2015-10-19 at 06.33.14.png

    Thanks in advance

    Siraj

    Hi Siraj,

    Try this...

    //date system
    var sysDate = new Date();
    //UTC date
    var utcDate = new Date(sysDate.getTime() + sysDate.getTimezoneOffset() * 60000);
    //India Standard Time (IST) is 5:30 hours ahead of Coordinated Universal Time (UTC)
    var istDate = new Date(utcDate.getTime() + ((5.5*60)) * 60000);
    
    alert('\n System : ' + systemDate + '\n UTC : ' + utcDate + '\n IST : ' + istDate)
    

    Concerning

  • Items changes time to time GMT - why?

    When I develop a photo (from raw) and save as jpg or PSD, the time is converted to GMT.   I sure don't want that to happen.  How can I disable it?

    Thank you

    Larry

    Management zones with photos is a disorder of the industry. If you really want to know all the details:

    EXIF 2.2 metadata standard (following almost all cameras) does not allow for time zones to save, and it specifies that time there recorded in photos interpreted as local time.  So if you take a photo in a part of the world and then move this image to another part of the world, there are all kinds of ambiguity as to when the photo was taken.  (Pretty amazing that the industry would make such an elementary error in the 1990s).

    Some cameras record the time zone in the EXIF field, which extends from the standard, but this extension is not widely accepted by the programs.

    There is a standard, newer XMP metadata, which is gradually being adopted by the industry of software (including Adobe, Apple and Microsoft).  XMP requires time to register unambiguously with a time zone.  Unfortunately, I don't know any camera manufacturers who have adopted XMP.

    So if you are in the city of New York (EAST) and the clock of your camera is set at 10:53, when you take a picture, this time is going to get counted in the pic 10:53 (with no time zone).  If you then import this pic in your PSE in San Francisco, CA (PST), PSE will interpret that as the time local (PST), which is like 10:53 PST or 18:53 UTC (GMT).  PSE then recorded without ambiguity as 18:53 UTC in its catalog.  PSE will convert this time in hour local (e.g. 10:53 PST) whenever he shows it to a user.   She will also write 18:53 UTC in the XMP metadata.   Finally, Windows Vista and Windows 7 will show you the time XMP if it exists (the time unambiguously), otherwise it shows you the time EXIF (local time).

    I think that it is reasonable behavior share of PSE and Microsoft, given the mess with the industry standards.  But to add to the confusion, the PSE has bugs, and it is not always follow these rules.  Sometimes he rewrites the time in EXIF to a peak UTC rather than local time (for example, when you spend time in a batch of photos using edit > set the Date and time); Adobe has recognized this bug for a long time but did not set.

  • What sense time gmt

    I know what time standered is but I don't know what time gmt is someone can help me here?

     
     
    [Moved from comments]

    Hello

    This should help you:

    http://en.Wikipedia.org/wiki/Greenwich_Mean_Time

    See you soon.

  • How to convert times from second to hh with CVI

    How to convert times from second to hh with CVI?

    Can anyone advice?

    It's here. As I told you, it's very simple:

    //----------------------------------------------------------------------
    // Function secToHMSstring ()
    //----------------------------------------------------------------------
    /// HIFN secToHMSstring ()
    /// HIFN The function takes an amount of seconds and returns a string with
    /// HIFN the corresponding value in H:M:S format
    /// HIPAR sec/Value in seconds to convert
    /// HIPAR verbose/If True use "hms" separators; if not, use ":" separator
    /// HIPAR string/The output string. It is responsibility of the programmer
    /// HIPAR string/that the string is large enough to keep the resulting text
    /// OUT string
    void secToHMSstring (int sec, int verbose, char *string)
    
    {
        int     hh = 0, mm = 0, ss = 0;
    
        if (sec >= 3600) {
            hh = sec / 3600;
            sec -= hh * 3600;
        }
        if (sec >= 60)
            mm = sec / 60;
        ss = sec - mm * 60;
    
        strcpy (string, "");
        if (verbose) {
            if (hh > 0) sprintf (string, "%s%dh", string, hh);
            if (mm > 0) { if (strlen (string)) strcat (string, " "); sprintf (string, "%s%dm", string, mm); }
            if (ss > 0) { if (strlen (string)) strcat (string, " "); sprintf (string, "%s%ds", string, ss); }
        }
        else {
            if (hh > 0) sprintf (string, "%s%d:", string, hh);
            if (mm > 0) {
                if (strlen (string)) sprintf (string, "%s%02d:", string, mm); else sprintf (string, "%d:", mm);
            }
            else if (strlen (string))
                strcat (string, "00:");
            if (strlen (string)) sprintf (string, "%s%02d",  string, ss); else sprintf (string, "%d", ss);
        }
    
        return;
    }
    
  • Convert time in string

    What is the way the more efficienct to convert a time stamp control to a string of DD/MM/YYYY? I'll use its output as parameters to date in a WHERE clause of a SQL Server query.

    Date/time format string is a simple option.

  • Convert time UNIX DateTime in the creation of view script

    So, I'm trying to create a view that captures data in different tables 4 like this:

    create or replace view as

    Select distinct a.id, a.time, a.location, a.val

    a. a, B, b, C, c, D d

    where (a.id = b.id) and (b.id = c.id) and (c.id, d.id =)

    This is a c# code I have:

    public static DateTime DateTimeFromUnixTime (long timeT)

    {

    Return epochDate + new TimeSpan(timeT * TimeSpan.TicksPerSecond);

    }

    I guess that it is a function to convert I found: ('1970-01-01', "YYYY-MM-DD") + numtodsinterval(1244108886,'SECOND');

    I would like to format YYYY-MM-DD hh: mm:

    the a.time in time is unix, which is a decimal number for a long time. How I somehow convert it to Datetime format in the above sql Design view?

    that would require a subselect and join back based on id I guess.

    for example

    CREATE OR REPLACE VIEW display AS
    SELECT DISTINCT a.id,
                    to_char(to_date('1970-01-01',
                                    'YYYY-MM-DD') + numtodsinterval(a.time,
                                                                    'SECOND'),
                            'YYYY-MM-DD HH:MM:SS') AS time,
                    a.location,
                    a.val,
                    d.stacount
      FROM a a,
          b b,
          c c,
          d d,
          (SELECT ID, COUNT(DISTINCT(a.STA)) stacount FROM a GROUP BY ID) d
    WHERE (a.id = b.id)
      AND (b.id = c.id)
      AND (c.id = d.id)
      AND (a.id = b.id);
    
  • Convert a MySQL function in Oracle PL/SQL


    Hello

    I'm trying to transfer a MySQL database in Oracle 12 c, there are a number of functions that I need to convert since I am new to Oracle and PL/SQL in particular, I would really appreciate your help for the conversion:

    CREATE FUNCTION get_customer_balance()p_customer_id INT p_effective_date DATETIME() RETURNS DECIMAL()5,2( )
    DETERMINISTIC
    READS SQL DATA
    BEGIN

    DECLARE v_rentfees decimal PLACES ()5,2) ; #TAXES PAID to RENT VIDEOS INITIALLY
    DECLARE v_overfees INTEGER ; #LATE FEES FOR RENTALS PREREQUISITES
    DECLARE v_payments decimal PLACES ()5,2) ; #SUM OF PREVIOUSLY MADE PAYMENTS

    SELECT IFNULL (SUM(film. rental_rate ),0) INTO v_rentfees
    FROM film , inventory , rental
    WHERE film . film_id = inventory . film_id
    ET inventory . inventory_id = rental . inventory_id
    AND rental . rental_date <= p_effective_date
    AND rental . Customer_ID = p_customer_id ;

    SELECT IFNULL (SUM(IF((TO_DAYS(rental. return_date ) - TO_DAYS(rental. rental_date )) > film. rental_duration ,


    ((TO_DAYS(rental. return_date ) - TO_DAYS(rental. rental_date )) - film. rental_duration ),0)),0) INTO v_overfees
    FROM rental , inventory , film
    WHERE film . film_id = inventory . film_id
    ET inventory . inventory_id = rental . inventory_id
    AND rental . rental_date <= p_effective_date
    AND rental . Customer_ID = p_customer_id ;

    SELECT IFNULL ()SOMME()paiement. amount ),0) INTO v_payments
    FROM payment

    payment . payment_date <= p_effective_date
    AND payment . Customer_ID = p_customer_id ;

    RETURN v_rentfees + v_overfees v_payments ;
    END

    This means that rental.return_date and rental.rental_date are declared as a TIMESTAMP. Question is why? Return_date/rental_date store fractions of a second? In any case, assuming rental_duration is in days:

    WHEN rental.return_date - rental.rental_date > numtodsinterval (film.rental_duration, 'day')

    But the question is return_date and rental_date stores it part time too. I assumed that he didn't, and simply omitted TO_DAYS. If so, then TO_DAYS should be translated to TRUNC:

    CREATE OR REPLACE

    Get_customer_balance FUNCTION)

    p_customer_id INT,

    p_effective_date DATE)

    RETURN NUMBER

    DETERMINISTIC

    IS

    v_rentfees NUMBER (5.2); PAID #FEES RENT VIDEOS INITIALLY

    v_overfees INTEGER.    #LATE ADVANCE RENTAL FEES

    v_payments NUMBER (5.2); #SUM OF PAYMENTS MADE PREVIOUSLY

    BEGIN

    SELECT NVL)

    Sum (film.rental_rate),

    0

    )

    IN v_rentfees

    FROM film,.

    inventory,

    Rental

    WHERE film.film_id = inventory.film_id

    AND inventory.inventory_id = rental.inventory_id

    AND rental.rental_date<=>

    AND rental.customer_id = p_customer_id;

    SELECT SUM)

    CASE

    WHEN TRUNC (rental.return_date) - TRUNC (rental.rental_date) > film.rental_duration

    THEN (TRUNC (rental.return_date) - TRUNC (rental.rental_date)) - film.rental_duration

    0 OTHERWISE

    END

    )

    IN v_overfees

    The RENTAL.

    inventory,

    film

    WHERE film.film_id = inventory.film_id

    AND inventory.inventory_id = rental.inventory_id

    AND rental.rental_date<=>

    AND rental.customer_id = p_customer_id;

    SELECT NVL)

    Sum (Payment.amount),

    0

    )

    IN v_payments

    PAYMENT

    WHERE payment.payment_date<=>

    AND payment.customer_id = p_customer_id;

    RETURN v_rentfees + v_overfees - v_payments;

    END;

    /

    SY.

  • Convert time

    Hi guyz,

    I imported data from Microsoft Access in Oracle where some time field is display as 210539 as time I want to convert this time in format IE property (21:05:39 HH24MISS), but when I use the below query showing error something wrong with my request? I have

    SQL> SELECT TO_CHAR(101550,'HH24:MI:SS')FROM DUAL;
    SELECT TO_CHAR(101550,'HH24:MI:SS')FROM DUAL
    

    *

    ERROR on line 1:

    ORA-01481: invalid number format model

    I use oracle 10g.

    You try to convert a number to a string, using a mask of datetime - this is not allowed.  Use 'HH', the value to convert to a datetime type.

    for example, this will work:

    SELECT TO_CHAR (to_date ('101550', 'HH24MISS'), 'HH24:MI:SS') FROM DUAL

    .. because now we are told Oracle that 101550 is actually a DateTime in the format 'HH24MISS '.

  • Convert a GMT timestamp field to the EAST

    Hello

    I have to convert the timestamp field from the source of GMT at EST.

    CREATE TABLE X
    (
    TS_FIELD TIMESTAMP (6)
    );

    INSERT INTO X VALUES('07-JAN-13 02.00.06.597000 PM');
    INSERT INTO X VALUES('07-FEB-13 02.00.06.676000 PM');
    INSERT INTO X VALUES('07-MAR-13 12.36.14.260000 PM');
    INSERT INTO X VALUES('07-APR-13 12.36.56.713000 PM');
    INSERT INTO X VALUES('07-MAY-13 03.46.48.800000 AM');


    I need to convert the above of the GMT timestamp field to the EAST in 24-hour format.
    I tried to do, but I'm getting conflict hours with the error of the day.

    I tried the below one and set to zero milliseconds of

    Select X,
    TO_timestamp (TO_CHAR (CAST (FROM_TZ (CAST (TO_DATE (TO_CHAR (X,'YYYY-MM-DD HH24:MI:SS.))))))) SSSSS)
    ,'YYYY-MM-DD HH24:MI:SS. SSSSS)
    ((AS A TIMESTAMP), "GMT") TO THE ZONE ' US / EASTERN' AS DATE),'YYYY-MM-DD HH24:MI:SS. SSSSS'),'YYYY-MM-DD HH24:MI:SS. SSSSS)
    X


    Please help me in this regard. I'm trying at the same time as well.

    Thanks in advance
    KVB

    That's because SCOTT in a format mask does not mean milliseconds, it means seconds after midnight. 12:33:48 is 45228 seconds after midnight.

    If you want 5 milliseconds decimals, do the following:

    SELECT TO_CHAR(TO_TIMESTAMP('14-SEP-11 12.33.48.537150 PM', 'DD-MON-RR HH:MI:SS.FF AM'),'YYYY-MM-DD HH24:MI:SS.FF5')
    FROM DUAL 
    
  • How to convert 'time' readable value?

    When I print just a playlist of iTunes directly on my printer, the time taken by each song fate of easily readable as way for example: 03:27 or 03:08 (minutes and seconds). Choice of the paper version iTunes does not unfortunately for our situation (a dance group need more songs on one page for the program of dances to play each week that would take on one of the pages in the iTunes of a print to the list). I learned how to export the play list in a text file and load to Microsoft Excel (which allows to print more lines per page), but the time taken by each song comes out as just a number (for example, 207 and 188 for the examples only). These values are to be a constant percentage of minutes + seconds digits. It should be possible to convert. But how? It is not among the options provided by Excel when loading a text file.

    I'd hate to convert each hand!

    Thank you.

    P.S. I have a Mac Mini, as indicated below, but the problems that I have described are spend on my Windows 7 PC.

    Rather than address the export, it would be easier to simply copy (from view songs in your iTunes library) and Paste into Excel.

    So if you have this in your library:

    .. .you will get this in Excel:

    Note that the time of stay in the format mm: SS .

Maybe you are looking for