Convert Date/Time to Date for viewing?

Hi there,
any property or easy way to truncate Time from Oracle Date data type to show in Grid?
Thanks
Ali
null

If you have an java.util.Date object you can call getTime() method on it. It will return milliseconds. Just divide it on 1000. Here is example code:
java.util.Date date = new java.util.GregorianCalendar(2001, 7, 6).getTime();
long seconds = date.getTime() / 1000;
//Your code
Best regards, Alex.

Similar Messages

  • I need an app or software that records the date/time each time a write something and press enter. This needs to be quick so I can continue writing right after I press enter, and the date/time is inserted for each word. Does this sort of software exist?

    I need an app or software that records the date/time each time a write something and press enter. This needs to be quick so I can continue writing right after I press enter, and the date/time is inserted for each word. Imagine a spreadsheet - each time a write something in a cell and press enter to go into the next cell, I need the app/software to automatically insert the corresponding dat and time. Does this sort of software exist?

    No one here is going to do anything about it. Send feedback to Apple.
    http://www.apple.com/feedback/ipad.html
    Basic troubleshooting steps. 
    17" 2.2GHz i7 Quad-Core MacBook Pro  8G RAM  750G HD + OCZ Vertex 3 SSD Boot HD 

  • Login Date/time & Logout Date/time of User in apex

    Hi,
    Is there any apex internal table/view where I can get the Login Date/time & Logout Date/time per user ?
    Regards,
    Benz

    Benz wrote:
    Is there any apex internal table/view where I can get the Login Date/time & Logout Date/time per user ?No APEX version = no definitive answer...
    APEX 4.1 offers:
    <li><tt>APEX_WORKSPACE_ACTIVITY_LOG</tt>
    <li><tt>APEX_WORKSPACE_ACCESS_LOG</tt>
    Access these through Home > Application Builder > Application > Utilities > Application Express Views
    See: Creating Custom Activity Reports Using APEX_ACTIVITY_LOG
    Note that the underlying logs are purged on a regular basis, so for the long term you need to copy the data to your own tables.
    Home > Administration > Monitor Activity provides reports based on this data.
    APEX 3.0 has Home> Application Builder > Application > Application Reports > Activity > Page Views by Session which is probably closest to what you're looking for. Can't find this so far in APEX 4.x: presumably superseded by the Home > Administration > Monitor Activity > Page Views > By Interactive Report option?
    Note however that the concensus among the wise is that accurate "logout" statistics with APEX (or any browser-based system) is impossible. How many users actually logout using using a method that triggers a capturable event at the actual time they stop using the system? How many are going to close the current browser tab? Or the entire browser window? Or press Cmd-Q? Or click a bookmark for a different location? Or type "p0rn" into the Search box? Or switch to another window and spend the rest of the morning reading Twitter? Or shutdown the machine? Or run out of battery power? Or lose their wifi connection? Or get timed-out during the fire drill? Or go home for the night after locking their PC with everything still running? Or...

  • Date Time Original & Date Time Digitized bug

    I have noticed that in Lightroom (1.1 or 1.2, doesn't matter) my photographs display WRONG Date Time Original & Date Time Digitized in the Metadata section. Both are exactly 30 minutes behind the actual time the photos were shot - eg., if I have shot a photo at 7:00pm, it will be shown as though it was shot at 6:30pm. Bridge correctly displays both this info. Any suggestions on how to rectify this info in Lightroom? Thanks,

    If you are shooting RAW, take care with "Edit capture time". There is
    evidence that it causes a rewrite of the RAW file by LR. This
    kind of a rewrite is dangerous, sometimes causing corruption. See
    this thread for a discussion:
    http://www.adobeforums.com/webx/.3c0331a6
    --Milt--

  • Settings:General:Date & Time: Year date is 2554BE

    Hi, can anyone help me.
    The Problem: Settings:General:Date & Time: Year date is 2554BE - the year date selection will only give me as choice of about 50 years at 2554 BE - when I spin the wheels to select 2011 - the year dates are ghosted and the wheels automatically flip back to 1st January 2554 BE.
    This problem is affecting my date, times in Email and Calendar and some APPS where I am trying to book accommodation, flights etc.
    I noticed this after an update syncing session late Nov, early Dec. I didn't understand what the ramifications would be until I have started to use my travel apps for booking things.
    I have tried syncing my IPhone 3 to Itunes in the hope it would fix it, but it hasn't to date.
    regards
    Dianne

    It sounds like you are using the wrong calendar. Go to Settings, General, International and make sure the Calendar setting is Gregorian.

  • Convert Epoch Date Time to Date Time format

    I am trying to convert Epoch Date time in GMT to Human Readable Date time format in UTC. I used the one below but it returns just the date in GMT but how can get datetime in UTC ?
    select To_Char( To_Date( '01.01.1970 06:00:00','DD.MM.YYYY HH24:Mi:Ss') + STARTIME / 86400,'DD.MM.YYYY HH24:Mi:ss') FROM HQ_AVAIL_DATA_RLE;
    I refered a couple of forums and applied everything, but still I wouldn't get the timestamp.
    Please note that i'm looking for datetime stamp, not just the date.
    Thanks in advance!
    Edited by: 830754 on Jan 27, 2011 11:18 AM
    Edited by: 830754 on Jan 27, 2011 11:19 AM

    Works for me. I see date and time (submitted 1000 for STARTTIME):
    select To_Char( To_Date( '01.01.1970 06:00:00','DD.MM.YYYY HH24:Mi:Ss') + 1000 / 86400,'DD.MM.YYYY HH24:Mi:ss')
    from dual
    TO_CHAR(TO_DATE('01
    01.01.1970 06:16:40Or do you mean something else?

  • Auto Date/Time stamp required for Numbers 3.1

    I would like to automatically add a Date/Time stamp to the last column's cell, when a person's name is selected from the pop-up menu in Column C.
    As a number of different people will be using the spreadsheet, I'd prefer not to have a keyboard short cut, as it can be easily overlooked.
    I was wondering if it were possible to use a script to copy a cell's (column D) results, containing the 'NOW()' or 'TODAY()' function, and paste the results into the 2nd cell (Column E), allowing the last column's formula to reference the 2nd cell?
    The formula in the last cell   =if($C2="","",$E2)  can then reference a static cell, rather than a live cell.
    I know enough to be dangerous, so I'm not sure if i'm heading in the right direction.
    Thanking you all in advance.

    Hi Gordon,
    Is this the same as a script?
    Good question! It's fun to see people try to define what a service is. It may be one of the least understood and appreciated features on the Mac. It was certainly a mystery to me not long ago.
    I think of a service as anything that can be made to appear in the Services menu. Apple has made that easy with Automator. You fire up Automator, create a new service "workflow" document, plop in a script, save, and see the result immediately in the Services menu. You can also send the .workflow package to someone else, who only needs to double-click to install it.
    This particular date-time service contains a short AppleScript (you can view it by opening the .workflow in Automator.  But other languages (Python, Perl, etc) and Unix utilities can be used too, as illustrated here.
    Since Numbers has decent support for AppleScript, it is quite easy for the non-technical user to "bolt on" menu choices to do quite sophisticated things that are not built into the interface itself.  I find it more accessible than (and just as powerful as) the VBA used for Excel macros. But that could be mostly a matter of familiarity.  In any case, it adds a whole new dimension to Numbers.
    SG

  • Measurement studio plot data vs. date/time (Measurement studio for Visual Basic 6)

    Hi, I'm trying to do something that should be simple and appears totally possible but I can't get there.
    I'd like to plot some data on the y axis vs. the date/time on the x-axis.  I've looked at the samples, and tried modifying the chart properties but I'm doing something wrong and can't get it properly.
    Any chance someone has a very simple example of plotting a few points vs. date/time that they can share?
    Thanks for any feedback!!

    Hey Larrymcd,
    What format is your date/time currently in? That might help us find the best way to do this. I was able to find a few examples of plotting a graph with time on the X-axis:
    http://forums.ni.com/t5/Measurement-Studio-for-NET/Measurement-Studio-Graph-to-plot-with-time-scale/...
    http://digital.ni.com/public.nsf/allkb/FFC867DDE42029BA8625760300477BEB
    http://zone.ni.com/devzone/cda/epd/p/id/3334
    Hopefully some of these can point you in the right direction. If you have any more questions after checking those examples out, please let us know!
    Daniel E.
    TestStand Product Support Engineer
    National Instruments

  • ConsoleOne lacking Date/Time-Format-Tab for Client-Setting

    I remember from GW6 the Client-Setting-Tab in ConsoleOne for Date-/Time-Format (for local german format)
    There is a tab with these settings in the GW8-Client, but I cannot find this specific setting in ConsoleOne.
    Any ideas?
    Sincerely
    Karl

    The availability in ConsoleOne with GW6.0 is confirmed. Now, since it seems to be gone with GW8.0, how would someone deal with the need of a central adjustment of this setting? At time I am running through the firm with setting this at the users workplace in the GW8.0-Client under Tools/Options/Calendar/Date-Time with hitting the button "Set to System" (or something like that - I have it in German).
    Sincerely
    Karl
    Originally Posted by laurabuckley
    Hi Karl,
    Personally, I don't recall such a setting in ConsoleOne.
    Sorry, not much use, just confirmation that you are not doing something wrong!
    Cheers,

  • After Add Instance occurs the date/time field data is removed.

    I have multiple dropdown options that adds or deletes a row from a table.  Trouble is after I have placed a date or time in fields elsewhere on the form, that data is deleted after I make a selection on the dropdown.  The dropdown has the options of In, Out, N/A, or N/O and when Out is selected the AddInstance is invoked adding a row to the table and when any of the others are selected the RemoveInstance removes the row.  This part works fine but the values in the date and time fields are removed as a result of the selection.  I have multiple dropdowns, and the code below will keep my data in the fields on the first selection but on subsequent selections the data for the data/time fileds are removed.  Any recommendataions on what is going on and how I can stop this?
    My codes appear below.
      if (this.rawValue == 1)  // If the value selected is "Out" of compliance then ...
         School.ItemListPage.ObsRec._Rows.insertInstance(0);  // Add an item to the table
         xfa.form.recalculate(false);
      else  // If the value selected is "In", "N/A", or "N/O" then ...
         School.ItemListPage.ObsRec._Rows.removeInstance(0);  // Remove this item from the table
      endif

    Hi,
    TRUNC( ) Function retrieves date part of DATE (date and time) datatype.
    Regards,
    Sailaja

  • HT4897 Regarding SENT MSG data time and date

    Hello
    I was very surprised when I went to print off eveal SENT email messages, only to find that the print off DID NOT include the time and date that the email was sent.  It did say "sent 2 days ago" . . . But the print off did not note the date I printed it ??
    I need to rely on this data for legal etc . . .
    Is this common to me.com ICloud emails ? Because, if so, I will have to move my emails back to GMAIL . . . After trying to consolidate my emIles to me.com.
    Is anyone else having this problem ?
    Thank you

    I've been seeing this problem too.
    I just send an email from the .Mac web interface and the email did have a date field when it was in my Mail In Box. But when I deleted the email, and it moved to my Trash, the date field disappeared.

  • Calculate actual time (Out Date Time - In Date Time)

    Hi All
    I am using Oracle 9i
    I have a two column table
    having date and time value in on of the column
    data is look like this
    Name Performed_Time
    IN 30-MAR-2008 09:15
    OUT 30-MAR-2008 11:30
    IN 30-MAR-2008 12:00
    OUT 30-MAR-2008 14:45
    IN 30-MAR-2008 16:00
    OUT 30-MAR-2008 18:21
    No the problem is that
    I need to calculate the actual time between every OUT and IN e.g OUT - IN (Out Time minus In Time)
    wud anybody plz help me regarding this?
    Thanks
    Hassan

    Nice one, but seems to be expensive.
    SQL> set autotrace on
    SQL> Select (dt_out - dt_in) * 24*60
      2        from (select flag, dt dt_in, lead(dt) over (order by dt) dt_out
      3                from t)
      4      where flag = 'IN';
    (DT_OUT-DT_IN)*24*60
                     135
                     165
                     141
    Execution Plan
    Plan hash value: 3295878825
    | Id  | Operation           | Name | Rows  | Bytes | Cost (%CPU)| Time     |
    |   0 | SELECT STATEMENT    |      |     6 |   126 |     4  (25)| 00:00:01 |
    |*  1 |  VIEW               |      |     6 |   126 |     4  (25)| 00:00:01 |
    |   2 |   WINDOW SORT       |      |     6 |    72 |     4  (25)| 00:00:01 |
    |   3 |    TABLE ACCESS FULL| T    |     6 |    72 |     3   (0)| 00:00:01 |
    Predicate Information (identified by operation id):
       1 - filter("FLAG"='IN')
    Note
       - dynamic sampling used for this statement
    Statistics
              4  recursive calls
              0  db block gets
             15  consistent gets
              0  physical reads
              0  redo size
            473  bytes sent via SQL*Net to client
            395  bytes received via SQL*Net from client
              2  SQL*Net roundtrips to/from client
              1  sorts (memory)
              0  sorts (disk)
              3  rows processed
    SQL>
    SQL>
    SQL>   Select ins.dt as in_time, outs.dt as out_time, (outs.dt - ins.dt)*24 as time_in
      2      from (
      3           select flag, dt, row_number() over (order by dt) as rn
      4           from t
      5           where flag = 'IN'
      6          ) ins
      7          LEFT OUTER JOIN
      8          (select flag, dt, row_number() over (order by dt) as rn
      9           from t
    10           where flag = 'OUT'
    11          ) outs
    12          ON (ins.rn = outs.rn);
    IN_TIME           OUT_TIME             TIME_IN
    30-MAR-2008 09:15 30-MAR-2008 11:30       2.25
    30-MAR-2008 12:00 30-MAR-2008 14:45       2.75
    30-MAR-2008 16:00 30-MAR-2008 18:21       2.35
    Execution Plan
    Plan hash value: 3072654067
    | Id  | Operation            | Name | Rows  | Bytes | Cost (%CPU)| Time     |
    |   0 | SELECT STATEMENT     |      |     3 |   138 |     9  (34)| 00:00:01 |
    |*  1 |  HASH JOIN OUTER     |      |     3 |   138 |     9  (34)| 00:00:01 |
    |   2 |   VIEW               |      |     3 |    72 |     4  (25)| 00:00:01 |
    |   3 |    WINDOW SORT       |      |     3 |    45 |     4  (25)| 00:00:01 |
    |*  4 |     TABLE ACCESS FULL| T    |     3 |    45 |     3   (0)| 00:00:01 |
    |   5 |   VIEW               |      |     3 |    66 |     4  (25)| 00:00:01 |
    |   6 |    WINDOW SORT       |      |     3 |    36 |     4  (25)| 00:00:01 |
    |*  7 |     TABLE ACCESS FULL| T    |     3 |    36 |     3   (0)| 00:00:01 |
    Predicate Information (identified by operation id):
       1 - access("INS"."RN"="OUTS"."RN"(+))
       4 - filter("FLAG"='IN')
       7 - filter("FLAG"='OUT')
    Note
       - dynamic sampling used for this statement
    Statistics
              7  recursive calls
              0  db block gets
             30  consistent gets
              0  physical reads
              0  redo size
            623  bytes sent via SQL*Net to client
            395  bytes received via SQL*Net from client
              2  SQL*Net roundtrips to/from client
              2  sorts (memory)
              0  sorts (disk)
              3  rows processed
    SQL>

  • Convert iMovie Project to NTSC for Viewing on DVD Player

    I have been trying to find some application (relatively cheap) that will convert an iMovie project to NTSC.  I found one on line for $30, but didn't know if anyone had suggestions for a cheaper solution that is realiable.  Thanks
    PS - If iMovie can do it, PLEASE let me know how because I have looked and I haven't found anything that will let me burn in DVD player format.

    Hi
    PAL to NTSC or NTSC to PAL
    A. Copying commercial DVDs - No Not possibly at all - Not even legal to discuss.
    B. Home made DVDs (DVDs without copy protection)
    C. Movies from iMovie or FinalCut
    • Save as full quality QuickTime .mov and convert this with JES_Deinterlacer  (free on internet)
    NTSC ---> PAL.
    • Most often not necessary - Most stand alone PAL DVD-players playback NTSC
    (if TV is old in BL/W)
    PAL ---> NTSC.
    • If played on Mac - not necessary AT ALL
    • If on NTSC DVD-player - CONVERSION IS NEEDED - nearly no Stand alone NTSC-DVD-players
    playback PAL at all.
    To do this You need to convert the PAL DVD to streaming.DV or full quality QuickTime .mov
    • I use Roxio Toast™ to do this (There are no free converter)
    • JES_Deinterlacer  (free on internet) to convert to NTSC
    • Set up an NTSC project (29.97fps or 30) in iDVD and import then burn
    I burn to
    • Verbatim DVD-R
    • Set down burn speed in iDVD to x1 or x4 recommended by many
    • Secure a minimum of 25Gb free space on internal boot hard disk before burning (IMPORTANT)
    PAL is 25 fps and an analog TV standard of 625 lines
    NTSC is 29.97 fps and 520 lines
    NTSC (29.97fps) 520 lines - about 640x480 pixels (square) 720x480 rectangular (narrow) pixels
    PAL  (25 fps)   625   lines - about 768x576 pixels (square) 720x576 rectangular (narrow) pixels
    to use a photo 702x480 resp 576 then add 9 pixels on each side to add together as 720
    If iDVD hangs on PAL or NTSC.
    Bengt W wrote
    Deleting iDVD pref. file - should return You into NTSC mode.
    Yes iDVD can switch to PAL - BUT as You see with a rather lousy result. (so will other way around too)
    a. Need to convert to PAL - most often not - Most PAL-player can playback NTSC
    and on a fairly new TV in color. (old TV in Bl/W)
    (Other way around - from PAL to NTSC most often a must - few NTSC-player can use PAL)
    b. IF MUST - then use JES_Deinterlacer to do this conversion - so much better and free.
    My list on this (or rather PAL --> NTSC - just think the other way around)
    Allosaurus writes
    Thank you SDMacuser. I dumped all the plist icons with no result, and was getting pretty plist off when it occurred to me to delete all the previous dvd.proj files. Bingo. That did the trick. So thank you for all your help and the additional information you provided.
    Yours Bengt W

  • How do I preserve date/time when converting to DNG?

    When I convert a file to DNG format in Lightroom, it changes the capture time in the metadata to the current date and time, rather than copying the source data.  Is there a way in which I can tell it to leave my dates alone?

    You wrote: “I noticed my mistake. It seems that what the conversion process was changing was the ‘Metadata Date’ and ‘Date Time’ fields, but ‘Date Time ‘" and ‘Date Time Digitized’ were remaining the proper, original date. The cause of my confusion was that my Metadata panel view was hiding all but the ‘Date Time’ field, so it appeared as though it had overwritten my prior date information.”
    Date/times in photo metadata can be very confusing.  There are all these fields with confusing names imposed by legacy industry standards -- I challenge anyone except a metadata nerd like me to remember the meanings and differences of Date/Time, Date/Time Original, Date/Time Digitized, Capture Time, Metadata Date, Modify Date, ....  The worst are the two XMP fields Date Created and Create Date, which have two very different meanings!  And every app and operating system makes a half-hearted attempt to "simplify" it for the user by choosing different names.   
    LR makes no serious attempt to make this easy for the user, and over the first several versions, it's handling of date/times was pretty sloppy. (It still has outstanding bugs that don't crop up that often in practice.)  You would think that at least LR would provide roll-over tool tips on the field names in the Metadata panel explaining each field.

  • Converting Delivery Creation Date/Time into the Local Date/Time

    Hi
    I have two fields like 'Delivery Creation Date' and 'Delivery Creation Time' in ECC system . My user wants the Delivery Creation Date / Delivery Creation Time in Local time of Plants .
    For example :
    Delivery    Plant       DelivCreationDate       DelivCreationTime   DelivCreationDate(Local)   DelivCreationTime(Local)
    312456          1650               11/2/2007                     4:30                          11/2/2007                          3:30
    Here the Plant 1650 is in Mexico . The above delivery is created in Canada in ECC system according to the candain time .
    But user wants to convert the Candain Delivery Creation Date and Time into the Local Date/Time of specific plant .
    So we need to convert the  Candain Delivery Creation Date and Time into Mexico timings .
    How can it is possible this one and user wants to automate this process .
    Please let me know
    Mubeen

    DATA :
    timestamp like TZONREF-TSTAMPS,
    time like sy-uzeit,
    date like sy-datum.
    The following function module is used to convert the
    time and date into GMT timestamp
    CALL FUNCTION 'IB_CONVERT_INTO_TIMESTAMP'
    EXPORTING
    i_datlo = <source_fields>-delivery_date
    i_timlo = <source_fields>-delivery_time
    I_TZONE = CAD'
    IMPORTING
    E_TIMESTAMP = timestamp.
    The following function module is used to convert the
    above obtained timestamp to MEX  timezone date and time.
    CALL FUNCTION 'IB_CONVERT_FROM_TIMESTAMP'
    EXPORTING
    i_timestamp = timestamp
    I_TZONE = MEX
    IMPORTING
    E_DATLO = date
    E_TIMLO = time.
    CAD and MEX are variables i have used...
    the challenge is to find the canadian and mexican time zone....CAD and MEX.
    which you can get by performing a lookup in table T001W and passing country as parameter.

Maybe you are looking for