Export Time to CSV

Hello everyone,
I wrote a script that in the end should store all data to a CSV file. Unfortunately it writes the time down as following:
08/12/2009 16:52:52.5335464 
this is correct but a little uncomftable to process so I want to ask you what do i have to do so the time is written like this:
manyDigits52.5335464 
or even better how do i get the time starting with 0 for the foirst measurement?
Thanks in advance
H.Wagner
Solved!
Go to Solution.

If you set the property "displaytype" of the time channel to "numeric" instead of "time" DIAdem will export a double representing the seconds till 01.01.0000
To work on with this numbers heer are some constants
const __int64 SECONDS_1_JANUARY_1904 = 60084288000; ///<! Seconds form 01.01.0000 - 01.01.1904
const __int64 SECONDS_1_JANUARY_1970 = 62167132800; ///<! Seconds form 01.01.0000 - 01.01.1970
const __int64 SECONDS_1_JANUARY_1601 = 50522659200; ///<! Seconds form 01.01.0000 - 01.01.1601
which can be used to transform to other time bases.
After the export you can set the "displaytype" back to "time".

Similar Messages

  • How to change the default structure when exporting data in CSV format?

    Hello,
    can some one tell us how to change the default structure in CRM when exporting lists in CSV format (with Option "Always use unformatted list format (CSV) for download" ? Because we want to add a new structure for our own -is it possible ?
    If it is possible where can we find these structure ? In the blueprint customizing ?
    Thank you very much,
    Christian

    There is a workaround to move from 1.5 version to the older 1.4 version. But this could be specific to the browser setting the JRE version.
    Excerpts from sun docs:
    However, a user can still run older versions. To do so, launch the Java Plug-in Control Panel for the older version, then (re)select the browser in the Browser tab.
    Example:
    Assume you are running on Microsoft Windows with Microsoft Internet Explorer, have first installed version 1.4.2, then version 5.0, and you want to run 1.4.2.
    Go to the j2re1.4.2\bin directory where JRE 1.4.2 was installed. On a Windows default installation, this would be here: C:\Program Files\Java\j2re1.4.2\bin
    Double-click the jpicpl32.exe file located there. It will launch the control panel for 1.4.2.
    Select the Browser tab. Microsoft Internet Explorer might still appear to be set (checked). However, when 5.0 was installed, the registration of the 1.4.2 JRE with Internet Explorer was overwritten by the 5.0 JRE.
    If Microsoft Internet Explorer is shown as checked, uncheck it and click Apply. You will see a confirmation dialog stating that browser settings have changed.
    Check Microsoft Internet Explorer and click Apply. You should see a confirmation dialog.
    Restart the browser. It should now use the 1.4.2 JRE for conventional APPLET tags.
    Details are here
    http://java.sun.com/j2se/1.5.0/docs/guide/deployment/deployment-guide/jcp.html
    My system (Windows XP) has the version 1.5_09 set as the default. However i just installed JRE 1.5_06 and would like to revert back to _06 as the default JRE..
    Will update if i find more information

  • Problem in exporting report in CSV format

    Hi All,
    I am using Crystal Reports. Following are details about it:
    CR Developer
    Product 8.5.0.217
    *_Problem that I am facing:__*_
    I can create report in .rpt format, it is working fine here. But while trying to export this report in CSV format, it gives report that doesn't contain any information.
    Is it because I am missing something or it is a known issue?
    Thanks and Regards,
    Anand

    Hi,
    I too am facing the same problem.
    The report was made in 8.5. I have exported the report & opened it in Crystal report 12.
    I can export to PDF, RTF, DOC & Tab separated Test.
    However when I export this report in .csv (legacy mode) I just get the header & when I export it in .csv (Standard) I get a blanck .csv file.
    I have  checked 'Isolate Report/Page sections' and 'Isolate Group sections'. Still no data in the report.
    refreshed it too.
    I contains sub reports, but not in the page header & footer (I think) & it does not seem to have cross tabs & OLAP grids.
    Any help is appreciated.
    Links to Screenshots:
    Main Report:
    http://picasaweb.google.com/lh/photo/yM9sBexKt5jW9soqaMmHjw?feat=directlink
    One of the Sub-Report:
    http://picasaweb.google.com/lh/photo/0ofa5sABakvZ-nFZp-JSMw?feat=directlink

  • Master Detail Report Export to Excel/CSV

    Hello,
    Does anybody know how one may export a master detail report page - master is a html region, detail is a report region export to a csv file.
    The only option I found i the layout and pagination - export csv option, but this generates just the report region...
    Is there any possiblility to export the report as shown on screen to csv?
    Thanx
    Johann

    Hi,
    Limit the range of data to be exported and check any row missing.
    Thanks & Regards,
    Nagarajan

  • Wavefrom graph time from .csv file

    Hello everyone. I had this problem something about three weeks ago:
    http://forums.ni.com/t5/LabVIEW/Wavefrom-graph-time-from-csv/td-p/2256754
    and solved it by changing the delimiter to a comma decimal delimitter with the format %,;%.2f 
    But this problem occurs again suddenly!.
    I have attached the VI and the .csv file as a ZIP format
    Best regards
    Oesen
    Attachments:
    Trykmaaling_READ.vi ‏36 KB
    ekstra.zip ‏1 KB

    I have deleted "row 0" and the graph is better now, but is still incorrect
    Best regards
    Oesen

  • OBIEE 11g - issue when export to a csv file

    Hello,
    I have an issue when I try to export to a csv file a report having numeric feild, when I export and open the file in notepad the trailing zeros to the right of decimal points do not show up. When export to another formats (such as excel, pdf) the trailing zeros appears correctly. e..g, 100.00 appears as 100, 100.50 appears as 100.5.
    Do you know what can be done in order to have trailing zeros to the right of decimal points to appear in a csv?
    Thanks

    This is a bug see below.
    Bug 13083479 : EXPORT DATA TO CSV FORMAT DOES NOT DOWNLOAD EXPANDED HIERARCHICAL COLUMNS
    Proposed workaround : OBIEE 11.1.1.5: Pivot Table Report Export To Csv Does Not Include Hierarchical Data [ID 1382184.1]
    Mark if answered.!
    Thanks,
    SVS

  • How to export report IN CSV format through JAVA.

    how to export report in csv format.when try to export in csv format.its exporting into csv but report not containing column heading , report heading and it showing all the data in a single line.we have integrated the reports with java.

    Use a Java API which can create PDF files based on some collection of plain vanilla Java objects (List, String, Number, etc).
    Google can find them all. Just feed it with something like "Java PDF API" or so. A commonly used one is iText.
    That said, when talking about this in JSP context, ensure that you do NOT write raw Java code in JSP files using scriptlets. Raw Java code belongs in Java classes. In such case you need a Servlet. In JSP just use taglibs and EL to interact with backend Java code and data. Scriptlets are discouraged since over a decade.

  • Is it possible to run a script each time a .CSV file is updated?

    I am having trouble with a script I am trying to write, which is made up of two parts:
    A .CSV file generated by PHP/MySQL whenever an RSS feed is updated. The contents of the .CSV are overwritten each time the PHP runs.
    A DataMerge script, written in JavaScript.
    What I would like to do is run the DataMerge script each time the .CSV file is updated. Is this possible, perhaps using an Event Listener within the PHP to trigger the DataMerge script? Or am I approaching this in the wrong way? I'm grateful for any thoughts you might have. Thanks, F.H.

    I would use Rorohiko's APID ToolKit: http://www.rorohiko.com/wordpress/indesign-downloads/active-page-item-developer/
    It has fileChanged event that is sent after the observed external file has changed.
    sorry guys for "labouring the point", but I'm working on very advanced project - and I need to know what my tool can or can't do
    and in this case - using APID will break point 2.3 of EULA, right ? interaction with external datasource - without user action ?
    robin
    www.adobescripts.co.uk

  • Windows live mail having problum after joining in domain examples incoming is good but sent or outgoing is not there and also send mails are not exporting at the time of live mail exporting time?

    windows live mail having problem after joining in domain examples incoming is good but sent or outgoing is not there and also send mails are not exporting at the time of live mail exporting time?

    This is not usually related to AD issues, but it may be more of a DNS issue. I posted a request in your other thread to post an unedited ipconfig /all of the DC and of the client.
    This may help use diagnose this issue and your other thread's printer issues.
    Thank you,
    Ace Fekay
    MVP, MCT, MCSE 2012, MCITP EA & MCTS Windows 2008/R2, Exchange 2013, 2010 EA & 2007, MCSE & MCSA 2003/2000, MCSA Messaging 2003
    Microsoft Certified Trainer
    Microsoft MVP - Directory Services
    Complete List of Technical Blogs: http://www.delawarecountycomputerconsulting.com/technicalblogs.php
    This posting is provided AS-IS with no warranties or guarantees and confers no rights.

  • How do I expand a ActiveDirectorySubnetCollection so I can view all elements and export to a CSV file?

    Hello,
    In the following, I list SiteName, Location, Subnets, and Severs, however I don't see all the servers or the subnets, presumably because Subnets are an ActiveDirectorySubnetColletion and Servers are a ReadOnlyDirectoryServerCollection.  So I want to
    expand this property so I can see all the elements of the collection, or array.  I've tried the Select-Object -ExpandProperty, but I get an error due to -ExpandProperty looking for a string.
    Any suggestions on how to expand both the Subnet and Server collections so I can see all elements and I can export to a CSV file?
    [cmdletbinding()]
    param()
    $MyArray = @()
    $Sites =[System.DirectoryServices.ActiveDirectory.Forest]::GetCurrentForest().Sites
    foreach ($Site in $Sites) {
    $obj = New-Object -Type PSObject -Property (
    "SiteName" = $Site.Name;
    "SiteLocation" = $Site.Location;
    "SubNets" = $Site.Subnets;
    "Servers" = $Site.Servers
    $Obj | Sort $Site.Name | FL
    $MyArray += $obj
    $MyArray | export-csv -path $env:HOMEPATH\SitesSubs.csv -NoTypeInformation
    Thanks for your help! SdeDot

    I've got a script that might help you out:
    http://gallery.technet.microsoft.com/scriptcenter/Convert-OutoutForCSV-6e552fc6
    Blog reference:
    http://learn-powershell.net/2014/01/24/avoiding-system-object-or-similar-output-when-using-export-csv/
    Boe Prox
    Blog |
    Twitter
    PoshWSUS |
    PoshPAIG | PoshChat |
    PoshEventUI
    PowerShell Deep Dives Book

  • Export data in CSV and store the file in local drive

    Hi,
    Here is the requirements.
    Fetch the values from table (around 60000 records), and export them into CSV file and store the file in local drive.
    I have written servlet to to this and it is working fine expect saving the file in local drive. At the moment, it is asking to save as in local drive. i want to save the file automatically in particular path (/var/www/files/). Below is the code.
    String file = "CandidatesDetails" + sd + ".csv";
                        queryString = "select * from candidate where candidate.status='A'";
                        connection = ConnectionPoolHelper.getConnection();
                        response.setContentType("application/csv");
                        response.setHeader("content-disposition", "filename=" + file);
                        System.out.println("Query= " + queryString);
                        ps = connection.prepareStatement(queryString,
                                  ResultSet.TYPE_SCROLL_INSENSITIVE,
                                  ResultSet.CONCUR_READ_ONLY);
                        rs = ps.executeQuery();
                        datas = "CANDIDATE ID,CANDIDATE TITLE,FIRST NAME,LAST NAME,E-MAIL,NATIONALITY ID,NATIONALITY,COUNTRY ID,COUNTRY NAME,INDUSTRY ID,INDUSTRY DESCRIPTION,EXPERIENCE,DATE OF BIRTH,HEAR ABOUT US\n";
                        oout.write(datas);
                        String country = "";
                        String nationality = "";
                        String hearABtUs = "";
                        while (rs.next()) {
                             nationality = rs.getString(7);
                             if (nationality == null)
                                  nationality = "";
                             else if (nationality.equals("null"))
                                  nationality = "";
                             country = rs.getString(9);
                             if (country == null)
                                  country = "";
                             else if (country.equals("null"))
                                  country = "";
                             hearABtUs = rs.getString(14);
                             if (hearABtUs == null)
                                  hearABtUs = "";
                             else if (hearABtUs.equals("null"))
                                  hearABtUs = "";
                             else
                                  hearABtUs = hearABtUs.replaceAll(",", ";");
                             datas = rs.getInt(1) + "," + rs.getString(2) + ","
                                       + rs.getString(3) + "," + rs.getString(4) + ","
                                       + rs.getString(5) + "," + rs.getInt(6) + ","
                                       + nationality + "," + rs.getInt(8) + "," + country
                                       + "," + rs.getInt(10) + "," + rs.getString(11)
                                       + "," + rs.getString(12) + "," + rs.getString(13)
                                       + "," + hearABtUs + "\n";
                             oout.write(datas); Regards,
    Dongan.

    Here is the first few lines
    public void doGet(HttpServletRequest request, HttpServletResponse response)
                   throws ServletException, IOException {
              HttpSession session = request.getSession(true);
              String datas = "";
              PreparedStatement ps = null;
              ResultSet rs = null;
              String queryString = "";
              Connection connection;
              PrintWriter oout = response.getWriter();
              java.util.Date d = new java.util.Date();
              SimpleDateFormat dateformat = new SimpleDateFormat("dd-MMM-yyyy");
              String sd = dateformat.format(d);
              tryAt the moment, when i run http://localhost:8080/project/CandidatesDetail, it will ask me to save the file somewhere. I should manually mention the path to save the file. what i want is, it should automatically save it in the location C:\projects\files\.
    thanks.
    Regards,
    Dongan
    Edited by: Dongan on Oct 26, 2007 5:22 AM

  • Exporting string to csv keeping commas and new lines

    Hi there,
    I am exporting string to csv and have been removeing new lines and commas like so
    thing.toString().replace(/\n/g, '').replace(',','') ;
    how can I do this iwthout losing the line breaks and commas? I can't have them in atm because messes up the csv.

    JSON is for 'transfering' information that can be reassembled into number, string, array, object, etc. format afterwards.
    Excel can import CSV but it might not understand the complexity of the information. Tyically what you would do is serialize complex information with JSON, recieve it on the other side (wherever that might be) and then deserialize it. After you deserialize it using JSONs abilities to turn your information back into what is was (numbers, strings, arrays and object) it is up to you how you restructure the data for the format you choose.
    Your original intent of preserving CSV is best for Excel or OpenOffice Calc. You didn't mention your intent. JSON would package those (CRLF) \n's for you.

  • LR4 - Anyone notice slower export times - RAW to JPG?

    I read through the "Lightroom 4 is slow" thread - very good reading. I have noticed many of the same issues & hope Adobe is paying attention to that thread!
    No one mentioned a slowdown in exporting RAW files to JPG. My average time for exporting Canon 7D CR2 files to full sized 300dpi JPGs in LR 3 is about 5.3 seconds per file. The same exports in LR 4 are about 8 seconds per file.
    I can learn to live with this increased exporting time. I'm curious as to whether anyone else is experiencing this.

    Yes.  For me, Canon G12 & 40D RAW files are taking twice as long to export under LR4 than under 3.6 - 16 secs vs 8 secs after the same processing.  But I am also seeing the same general latency problems identified in other threads here.  I've reverted back to 3.6 after trying every possible workaround posted so far - LR4 is unusable for me.
    Dave

  • Trying to shorten export time

    Been trying to export 1920x1080 using h.264 codec for posting on web. I first set up my own Export but took 8 hrs to finish 35%. Been looking at the Apple Devices 720 or 1080 options now. I switch options from Apple Device to Web Hosting but there's no indication of changes in size changes the size and therefore length of time to export (generally). Tho Apple Devices produces a "protected MPEG-4" movie and Web Hosting a "Quicktime" movie.
    Any suggestions on choices for export?
    OR
    Has anyone had problems withi export time and then solved them? If so, how?
    Any other tips appreciated.

    My workflow for a YouTube project is:
    Completely render the project before exporting.
    Export to whatever the current codec is set for (so... just Export with current settings), typically ProRes 422(HQ) [my general preference established when creating a project] or sometimes ProRes LT and if necessary, ProRes 4444.  It really doesn't matter, when the project is completely rendered and exporting to a ProRes format, the export is about 1/5 to 1/2 run time (about 2 - 5 minutes for every 10 of video -- probably dependent on your storage bandwidth.)
    Exporting H.264 for YouTube of Vimeo straight out of FCPX is *absolutely pointless* since FCPX does not offer any quality options (always exports highest quality H.264) and YouTube and others are just going to recompress down to their limit anyway.  I never give YT that opportunity...
    I use Quicktime 7 Pro (about 100,000 times easier than compressor [hyperbole]) to transcode to YouTube specifications. The maximum bandwidth YT will "place" is 5Mbps... so I transcode to, at most, 5Mbps.  Turn on Auto Key Frames; Turn off Frame Reordering; Data Rate Restrict to 5000 kbits/sec; Optimize for Streaming; Compressor Quality (max available) to High; Encoding to Best Quality (Multi-pass).  For the Size options, I use the HD settings from the top section (anything below the start of NTSC will create broadcast tv "safe" video [overscan] and will not be completely compatible with digital targets such as YT [it will be smaller].) I also set Preserve Aspect Ratio Using Letterbox (YT used to have problems with 1920x1080 video being a little "squished" vertically to compensate for the transport controls... probably just habit now.)  Audio: Format AAC; Sample Rate 48000; Variable bit rate ~192kbps. And check the Prepare for Internet Streaming checkbox and select Fast Start.  Except for the variable bit rate audio and the letterboxing stuff, these are the specifications YT put down in its documention.
    Converting from the ProRes output from FCPX to the H.264 for YT in QT7Pro is actually faster than trying to export H.264 directly out of FCPX (and compressor for that matter...)
    I find if you simply change the m4v filletype to .mov, you don't need all the web page stuff that gets generated, you can simply load the video up in a browser from a direct URL.  Exporting to Apple Devices is a quick way to transcode 1080 out of FCPX to the smaller sized 720 video when necessary.
    Here's an example of an .m4v Apple Devices video with the filetype manually changed to .mov:
    http://sight-creations.com/video/2.5demo_noPS.mov
    Will it upload to YT? Yep: here's the proof: http://www.youtube.com/watch?v=yH1mIli8EpA (but this one has no audio -- be very careful about the audio settings of what you upload to YT... they don't like Linear PCM [AIFF, WAV, etc... YT wants AAC])
    HTH

  • PC Suite SMS exports generates incorrect CSV

    Nokia PC Suite 7.1.18.0 doesn't escape double-quote characters when exporting text messages. To give you an example, I have created 2 text messages in my Archives box:
    Test " end of message
    and 
    Test really bad ";"another column
    When exporting this to csv, the generated csv is:
    sms;submit;"";"";"";"2009.03.01 12:38";"";"Test " end of message"
    sms;submit;"";"";"";"2009.03.01 12:37";"";"Test really bad ";"another column"
    This should have been:
    sms;submit;"";"";"";"2009.03.01 12:38";"";"Test "" end of message"
    sms;submit;"";"";"";"2009.03.01 12:37";"";"Test really bad "";""another column"
    (escapeing the double-quote characters by doubleing them).
    This is a bug. Should I notify this somewhere else than here?
    Message Edited by kuhlie on 01-Mar-2009 11:44 AM

    07-Aug-2006
    11:45 AM
    rufao wrote:
    connect the phone to the pc.
    open pc suite
    go to file manager
    go into your phone
    go into messages
    find the message you want and drag it to your desktop.
    if your phone is compatible, then you could use lifeblog also. www.nokia.com/lifeblog' target='_blank'>http://www.nokia.com/lifeblog' target='_blank'>www.nokia.com/lifeblog
    just to get a little detail...
    go into messages part means thru the phone browser? and then the list of messages found in inbox...also can drag them to a folder created in My Doc, right?
    Windows XP Home Edition Version 2002 SP2
    Nokia PC Suite 6.81.13.0
    Cable connection

Maybe you are looking for