How to build a time stamp from a string

I have the date-time information stored in a string and I want to build a time stamp to make a plot with the date-time in the X axys. Is there a way to do this??
thanking in advance...
crimolvic

See attached vi.  You may have to modify depending on the order your string.
- tbob
Inventor of the WORM Global
Attachments:
DateTimeMOD[1].vi ‏34 KB

Similar Messages

  • How to read a time stamp from the db without ".0" at the end

    Hi All,
    I have code that is saving the results of a query in a result set.
    When ever i read a time stamp from the db (mysql 4) it always adds ".0" to the end of it.
    I tried using the getTimeStamp, getDate, getString methods for result sets and was not able to resolve the issue.
    Am i missing something here?
    Thanks

    here is the code
    public static Table executeSelect(Connection conn, String qry)
         throws SQLException {
              Statement stm = null;
              ResultSet rs = null;
              try {
                   stm = conn.createStatement();
                   rs = stm.executeQuery(qry);
                   Table t = new Table(rs);
                   return t;
              } finally {
                   close(null,stm,rs);
    Basically the user is asked to enter the query and the connection settings and then i retrieve the data and return a table.
    Now if i try to print the value of the time stamp from the result set it adds a a .0
    So for example if am running the following
    select mod_ts from temp limit 1;
    | mod_ts |
    | 2007-12-28 09:32:58 |
    1 row in set (0.00 sec)
    When i print the value of the time stamp it gets printed as 2007-12-28 09:32:58.0
    The following code is used to generate a table from the result set
    public Table(ResultSet rs) throws SQLException {
              ResultSetMetaData rsmd = rs.getMetaData();
              int colCount = rsmd.getColumnCount();
              colNames = new String[colCount];
              colTypes = new int[colCount];
              for ( int i=0; i<colCount; i++) {
                   String colName = rsmd.getColumnName(i+1);
                   colNames[i] = colName;
                   int colType = rsmd.getColumnType(i+1);
                   colTypes[i] = colType;
              while ( rs.next()) {
                   if ( data == null) {
                        data = new ArrayList<List>();
                   List<Object> row = new ArrayList<Object>();
              for ( int i=0; i<colCount; i++) {
                   Object ob = rs.getObject(colNames);
                   row.add(ob);
              data.add(row);
    Now when i print the values in the result set it adds a .0 to the end of the time stamp
    I also tried using getTimeStamp for a result set and the same problem still existed

  • How do you edit out the date and time stamp from a photo

    How do you edit out the date and time stamp from a photo

    You can blur it out with retouch
    The built-in "Retouch" brush in "Edit" mode should suffice, if the background is mostly uniform, and if you set the size of the brush to slightly wider than the bar width of the letters. For example, in this picture I removed the year from the date (in the lower right corner) by using the "retouch" brush and following the contours of the letters. (the screen shot is from iPhoto '11, but iPhoto 9 should give similar results).
    Regards
    Léonie

  • How do I see the time stamp from footage

    I was wondering if it is possible to see time stamps from footage taken by GoPro camera in FCPX. I can see the duration of the clips and the DATE it was created. I would like to see the actual time it was created. I have 2 cameras that were shooting at the same time and I would like an easier way of sifting through all of the clips to mary them up.
    Is there a way to see the time stamp of when the video was taken?
    Thanks

    Got ya. I will suggest one more thing: You can add "markers" at points where you can visually (or aurally) see (or hear) a synch point. Once you add these markers, "synchronize clip" will begin to grind out the rest.
    Again, if you look at the above tutorial, I think it explains this under "manual" synch.
    I don't mean to push this upon you, but... FCPX is GREAT for multi-cam synch. It is the best--I think--in the industry.
    Good luck. Sorry if I'm of little help beyond this.

  • How can we define time stamp in rough cut planning profile

    Hi all
    There is no time stamp(From date to date) in Rough cut planning profile and it is just time span (0-5 ,5-10,... workdays) . If I have different capacity for my resource in different intervals how should I define it so that in planning table it can take it to account and show me requirement versus avalilable capacity acoordingly.Note that we are working with repetitive plannig and our resources are lines which have different production rate between each interval.
    Regards
    Babak Bolourchi

    Dear,
    In REM you can use planning table through MF50 for your requirement.
    For time stamp in rough cut planning profile   please refer my reply from this link,
    [Rough cut planning|Rough cut planning profile]
    [Link 2|https://forums.sdn.sap.com/click.jspa?searchID=25236413&messageID=6404039]
    Hope it will help you.
    Regards,
    R.Brahmankar

  • How do I add time stamp to photo in photoshop?

    How do I add time stamp to photo in photoshop? I have saved photos from a camera phone to the computer. They still have the META data on them (aka the date and time from when the picture was taken). How do I put them on there?

    The following is old but may still be valid with Yosemite (it addresses how to remove the name but indirectly also how to display it): http://osxdaily.com/2012/01/10/remove-user-name-from-menu-bar-os-x/

  • How to find the time stamp for delata

    Hi Analysts,
    I am loading data from R/3 to InfoProvider(Cube or ODS) with delta update.
    I have seen nodata was loaded to InfoProvider. But data was available at DataSource. then new delta is started. i want to load the last delta again.
    How to see the time stamp of delta?
    How to load that delta data?
    Please help me in this need.
    Hari.

    Dear Srihari,
    if your last delta failed then you can request it again by calling the same delta infopackage again, it will ask for repeat delta (in case last delta has failed), go and run it.
    this way you can have your delta figurs back, and do upload via PSA.
    Hope it helps.

  • Decode time stamp from c-code

    Hi everybody,
    I have a TCP/IP where I send datagrams (in c-code) to LabVIEW (which is the server).
    The datagram sends with every data a time stamp in the following way: dd.mm.yyyy hh:mm:ss.zzz, where zzz stands for milliseconds. I would like to see my data in a waveform chart at the LabVIEW frontpanel, but I'm not sure how to get a continuous time stamp from the c-code. I tried it with "scan from string" (as my data enters LabVIEW as a string), and then I made a sum of the minutes (times 60) and the seconds, which works for one minute, but after one minute my time goes of course to zero again which isn't nice for the waveform chart...
    Does anybody has a nice idea how to solve this? Any examples?
    Thanks in advance!
    Steffi

    This code should help you,
    I only have a problem to read the final '.' my localization set the ',' as decimal sign and I can't get LabVIEW to change the decimal sign in this parser.
    Ton
    Message Edited by TonP on 02-01-2008 10:00 AM
    Message Edited by TonP on 02-01-2008 10:01 AM
    Free Code Capture Tool! Version 2.1.3 with comments, web-upload, back-save and snippets!
    Nederlandse LabVIEW user groep www.lvug.nl
    My LabVIEW Ideas
    LabVIEW, programming like it should be!
    Attachments:
    ScanTime.png ‏2 KB

  • How to print date & time stamp on photos?

    How to print date & time stamp on photos?

    Three methods:
    File>process multiple files>labels. Be sure to uncheck "same as source", or the originals will be overwritten. It is best to work on duplicate files, esp. while learning.
    Use the horizontal or vertical type tool to add the information manually to each picture file
    If the same information is to be applied to several pictures, e.g. a copyright notice, use  of a brush made in PSE is very efficient

  • How to remove the time slider from my project and keep only buttons

    How to remove the time slider from my project and keep only buttons to interact with my project .

    If I understand you correctly, go to the skin editor (Project, Skin Editor in Captivate 4), select the Playback Control tab, uncheck the Progressbar check box.  Leave checked the buttons for play/pause, rewind, forward, back, etc.
    I hope this helps.
    Mister C.

  • How do I remove a stamp from favorites?

    How do I remove a stamp from favorites? (Acrobat XI Standard)
    I testing the Stamps in the Comment portion of Acrobat and I fid that when I select one it ends up as a Favorite.
    If you have 2 or more you can remove 1 of them but if you only have 1 you can not remove it.
    Is there a problem with me - - or the software?

    It’s easy to remove the “Approved” stamp from the Favorites list on the Stamp pull-down menu in Acrobat.
    1) Go to: C\Program Files x86\Adobe\Acrobat10.0\Acrobat\plug_ins\Annotations\Stamps\ENU
    2) Copy the “StandardBusiness” PDF file.
    3) Paste the copy of the “StandardBusiness” PDFfile on your Desktop (this is a temporary location).
    4) Open the copy of the “StandardBusiness” PDF file from your Desktop.
    5) Delete Page 1 (the “Approved” stamp page).
    6) Save and close the copy of the“StandardBusiness” PDF file.
    7) Copy the “StandardBusiness” PDF file from your Desktop (the one you modified).
    8) Go to: C\Program Files x86\Adobe\Acrobat10.0\Acrobat\plug_ins\Annotations\Stamps\ENU
    9) DELETE the existing “StandardBusiness” PDF file from that folder.
    10) Paste the “StandardBusiness” PDF file you copied from your Desktop.
    11) Close Acrobat.
    12) Reopen Acrobat – the “Approved” stamp will begone from your Favorites list!
    13) By the way, the “Approved” stamp will, also, be gone.
    14) You can, then, DELETE the “StandardBusiness” PDF file from your Desktop.

  • How to create an XML document from a String.

    Can anyone help,
         In the Microsoft XML Document DOM there is a load function load(string) which will create an XML document, but now we are switching to Java and I do not know how to create and XML document from a string, this string �xml document� is passed to my program from a webservice and I need to read several xml elements form it in a web server.
    This string is a well formatted XML document:
    <?xml version="1.0" encoding="UTF-8"?>
    <Countries NumberOfRecords="1" LanguageID="en-us">
         <Country>
              <CountryCode>AU</CountryCode>
              <CountryName>AUSTRALIA</CountryName>
         </Country>
    </Countries>

    Thanks PC!
    I made it work using:
    DocumentBuilderFactory factory = DocumentBuilderFactory.newInstance();
    DocumentBuilder builder = factory.newDocumentBuilder();
    factory.setIgnoringComments(true); // We want to ignore comments
    // Now use the factory to create a DOM parser
    DocumentBuilder parser = factory.newDocumentBuilder();
    //TransformThisStringBuffer is a string buffer wich contain the 'XML document (String)'
    InputStream in = new ByteArrayInputStream(TransformThisStringBuffer.toString().getBytes());
    // Parse the InputStream and build the document
    Document document = parser.parse(in);
    But which one is faster InputSource or InputStream, were would you put the "new InputSource(new StringReader(yourString))" in the above code?

  • How can i Pick the data from the string

    Hi Gurus
    How can i Pick the data from the string using regular expressions. for ex:
    1) 10000-san0001
    2) 3000000-rani0001
    3) 30-super003
    its doesnt mainain how many characters.
    like this i got string. now i only want  after the symobl( -) text (san
                                                                                    rani
                                                                                    super)  .how can i pick that
    can anyone provide me regular expressions.
    Thanks & Regards
    Sandya
    Edited by: sandya rani on Jan 29, 2010 2:51 PM

    REPORT  ZTEST.
    data: str1 TYPE string,
    str2 TYPE string,
    str3 TYPE string,
    lenth TYPE string,
    str4 TYPE string,
    temp type i value '0'.
    data: ii type i value '0',
          jj type i value '1'.
    Data : begin of itab OCCURS 0,
    l_string type string,
    end of itab.
    itab-l_string = '3000000-GUNDALA20001'.
    append itab.
    clear itab.
    itab-l_string = '2045677-iCVj1001'.
    append itab.
    clear itab.
    itab-l_string = '3000-ragh30001'.
    append itab.
    clear itab.
    loop at itab.
      MOVE 0 TO ii.
      MOVE 1 TO jj.
      SPLIT itab-l_string AT '-' INTO: str1 str2 .
      clear: itab-l_string,str1.
      lenth = strlen( str2 ).
      while temp < lenth.
        str4 = str2+ii(jj).
        if str4 CA 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' or str4 CA 'abcdefghijklmnopqrstuvwxyz'.
          if sy-subrc = 0.
            CONCATENATE str3 str4 into str3.
          endif.
          ii = ii + 1.
        ENDIF.
        temp = temp + 1.
      ENDWHILE.
      write: / str3.
      clear: itab, ii, jj,str1, str2, str3, str4,temp, lenth.
    Endloop.

  • How do you remove the date/time stamp from a photo before printing?

    I have one group of photos in an event that have the date and time stamp on them.  I don't know how to remove the date/time stamp before printing. 

    If you have your camera set to imprint the date/time on the photo you can not "remove it - it is a part of the photo - depending on the surounding photo you might be able to retouch it out
    LN

  • How to read time stamps from a spreadshee​t and calculate the difference between consecutiv​e time stamps?

    Hi,
    I am new to Labview. This question might be a joke to some of you here, but any help would be greatly appreciated. I have a spreadsheet with time stamps and power outputs from a generator. I am supposed to calculate the difference between consecutive time stamps, which will act as a delay for the next power output update that needs to be sent. For example, lets say that I have to following data:
    Time Stamp                    Power Output
    11:00:00 AM                       3kW
    11:00:02 AM                       2.9kW
    11:00:04 AM                       3.2kW
    11:00:06 AM                       3.1kW
    The above data doesn't make any sense, but it is just for the purpose of this question.
    So, I have to read 11:00:00 AM and 3kW initially - 3kW is the initial request that

    Hello
    you can simple subtract one time from the other one and so you get the difference. -> Example
    Mike
    Attachments:
    Unbenannt 2.vi ‏8 KB

Maybe you are looking for