Local time

Let's say I have a function with a signature like this: private function (date:Date) {     trace(date.datetime); } ... when I send a date value into this function does the time portion gets converted into local time automatically?  Thanks

I think you are describing a classic date management problem that has no single good solution.  The problem is that if you store dates in local time and don’t store timezone information, you don’t have enough data to view the date as desired on other clients especially if they are in other time zones.  You will find other past discussions on this topic.
The basic problem is that, if you have, say, a west coast office and an east coast office and the west coast office records a transaction at 9am and stores it as 9am, the east coast office doesn’t know whether it happened at 9am their time or 12pm their time.  There is another version of the problem where things are stored in GMT but you really want to reproduce the local time display at the office that made the transaction.
One solution offered is to not use date/time and simply use a string.  Otherwise, you have to know which office made the transaction and what time zone it is in.

Similar Messages

  • How can I display local time in Melbourne, Australia? I am using FF4 with Windows XP

    I just installed FF 4. In the prior FF version I had a display of the local time in Melbourne, Australia on the lower left side of the screen. After installing FF 4, I no longer have this display. How can I get it back?

    Hello Richard,
    Joel has created a nice [url http://joelkallman.blogspot.com/2010/09/automatic-time-zone-support-in.html]blogpost for describing a new feature in APEX 4.0, which does exactly what you want.
    If you don't have APEX 4.0 or can't move to "TIMESTAMP WITH LOCAL TIME ZONE", you could try to build that yourself. There's a [url http://www.onlineaspect.com/2007/06/08/auto-detect-a-time-zone-with-javascript]nice example on how to determine the clients timezone in Javascript, which you could use to populate a hidden item on your login page, which you could store in an application item afterwards.
    -Udo

  • To print local time in format of HH:MM in a smartform

    Hi Guys,
    I need to print the local time ofp rinting in a smartform eliminaitng the seconds. i.e., Need to print only HH:MM.
    How Do I do that?

    Display &SFSY-TIME(5)&
    Or
    create program lines and display and pass the time to variable without seconds..
    Example:
    Data : time(5).
    time = sfsy-time.
    close thread once question is answered.
    Regards,
    SaiRam

  • Time stamp and local time stamp

    Dear sirs...
    i am a little confused about the time stamp datatype and how to handle it in my applications. i want to display the time for every user in its time zone. so the fields in the database are timestamp with local time zone. is this correct?
    i want it to be such that if one stores the time in USA time , the other can display that same data in UK time.
    best regards

    repost

  • HT4576 I want to set up appointment times for an overseas trip before I go, and see those local times in the places I visit, but also be able to set new appointments while I am traveling, in the local times.  Can I do this with Time Zone Support?  If not,

    I want to set up appointment times for an overseas trip on my iPhone 4S before I go, and have them appear as I put them in (for the local time) when visiting other countries.  I also want to be able to adjust times and set up new appointments when I am overseas for the local time.  Can I do this using the Time Zone Support or any other way? 
    Basically I want to do what I can do with a piece of paper - write down the time for when I will be there, and have it viewable when I am there, but also be able to put down new times while there.

    Hi.
    Regarding your question about reverting back- yes, I think you can. If you make a backup of your current configuration in Server Admin (by dragging the configuration file to your desktop- cool, no?) then you can load that one back in should your configuration not work. If you have the manual from Apple it should describe this process.
    Network speed post-op? I don't think you will need to worry. Even using home directories stored on our OS X Server there is no network slowdown (that you can notice or that impacts the wider LAN in any case). It shouldn't slow down access to files, applications (which still come from the local drive anyway) or individual internet connections (even with filtering).
    In our experience some of these things have actually got faster- but a lot of that is user perception. Same goes for people who will know you have configured the server and that they are now accessing files through your network from the server, and who really think it is slower. File coming from your local hard drive will always be quicker- but network access isn't that bad that it will make you barf and run in the opposite direction.
    Something to look at: connection speed between clients and switching technology in your office. In other words, what kinds of switches are you using, what line speed have you got (100MB/s?) and is the connection from your server to the switch gigabit? Make sure it is.
    Enjoy
    Paul
    MacBook Pro 2.16GHz   Mac OS X (10.4.8)  

  • HELP - How to Convert Date in GMT to Local time in Applet

    Hi All
    Is there a way to convert a date from GMT format into a local time say IST in my Java applet, this GMT date is coming from a postgresql database.
    Thanks in advance
    Swaraj

    Try this with your customization:
    java.text.SimpleDateFormat format0 = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
    java.text.SimpleDateFormat format1 = new SimpleDateFormat("yyyy/MM/dd HH:mm:ss");
    java.util.Calendar cal0 = Calendar.getInstance(new SimpleTimeZone(0, "GMT"));
    java.util.Calendar cal1 = Calendar.getInstance(new SimpleTimeZone((int)(5.5*60*60*1000), "IST"));
    format0.setCalendar(cal0);
    format1.setCalendar(cal1);
    java.util.Date date = format0.parse("2003-01-25 00:15:30");
    java.lang.String formatted = format1.format(date);
    System.out.println(formatted);

  • Can you share photos between computers on a local time machine network.  I have iMac with lots of pictures I would like to view on my MacBook Air.  Does anyone know how to do this?

    Can you share photos between computers on a local time machine network?  I have iMac with lots of pictures I would like to view on my MacBook Air.  Does anyone know how to do this?

    Can you share photos between computers on a local time machine network?  I have iMac with lots of pictures I would like to view on my MacBook Air.  Does anyone know how to do this?

  • Convert Data time stamp to Local Time

    Hello,
    I want to convert this input to local time EST.
    Input:12/8/2006 10:23:00.000000000 PM -06:00
    o/p: EST.Local Time

    Is the input a string? A timestamp? If so, which flavor of timestamp? Something else?
    Normally, you'd want to use a TIMESTAMP WITH LOCAL TIME ZONE data type for this sort of requirement, since it automatically converts data to the client's time zone. Assuming the input is a string and that the client's time zone is set to EST
      1  select cast(to_timestamp_tz( '12/8/2006 10:23:00.000000000 -06:00',
      2                               'MM/DD/YYYY HH24:MI:SS.FF TZH:TZM' )
      3                AS TIMESTAMP WITH LOCAL TIME ZONE)
      4*   from dual
    SCOTT @ nx102 JCAVE9420> /
    CAST(TO_TIMESTAMP_TZ('12/8/200610:23:00.000000000-06:00','MM/DD/YYYYHH24:MI
    08-DEC-06 11.23.00.000000 AM
    Elapsed: 00:00:00.01
    SCOTT @ nx102 JCAVE9420> Justin

  • Converting UTC time stamp to local time (CET)

    Is there a smooth way to convert a time stamp from UTC time into the local time (e.g. CET)?
    CONVERT TIME STAMP.... Just converts the timestamp from local time zone to UTC, is there another comand to perform the opposite conversion?
    TIA!
    /Armin

    Hi Armin
    The statement does not only convert from local time zone to UTC you can specifiy any timezone:
    CONVERT TIME STAMP time_stamp TIME ZONE tz
            INTO [DATE dat] [TIME tim]
            [DAYLIGHT SAVING TIME dst].
    The following statement can also be used to convert from date time to timestamp.
    CONVERT DATE dat [TIME tim [DAYLIGHT SAVING TIME dst]]
            INTO TIME STAMP time_stamp TIME ZONE tz.
    Regards
    Faaiez

  • Macbook Pro not saving local time machine snapshots

    Hi,
    First time using the Apple forums here but I can't seem to find a definate answer for my question.
    I purchased a new Macbook Pro last week that came with Lion preinstalled. I noticed it was taking local time machine snapshots. In Time Machine it said Local snapshots, then backups each day etc etc....
    Now it does not say local snapshots and they are not in my time machine timeline.
    The only thing I have changed is my backup drive for Time Machine (3TB drive 600GB used now) so I do not know why my local snapshot function has vanished.
    I know Lion is very new but has anybody seen this or has some advice for getting it back on again?
    Thanks

    Hi,
    First time using the Apple forums here but I can't seem to find a definate answer for my question.
    I purchased a new Macbook Pro last week that came with Lion preinstalled. I noticed it was taking local time machine snapshots. In Time Machine it said Local snapshots, then backups each day etc etc....
    Now it does not say local snapshots and they are not in my time machine timeline.
    The only thing I have changed is my backup drive for Time Machine (3TB drive 600GB used now) so I do not know why my local snapshot function has vanished.
    I know Lion is very new but has anybody seen this or has some advice for getting it back on again?
    Thanks

  • I want to insert local time & date in my site

    Wednesday 25 May 2008 | 13:01 GMT+2 | Cyprus-EU
    I want to insert local time & date in my site , well zone
    is GMT+2 , below is correct for date , what about time ?
    [CODE]<script language="JavaScript"
    type="text/javascript"><!--
    var months = new Array("Jan", "Feb", "Mar","Apr", "May",
    "Jun", "Jul","Aug", "Sep", "Oct","Nov", "Dec")
    var weekdays = new Array("Sunday", "Monday",
    "Tuesday","Wednesday", "Thursday","Friday", "Saturday")
    var today = new Date()
    //-->
    </script>
    <script language="JavaScript"
    type="text/javascript"><!--
    // Today is Weekday, Month Day, Year
    document.write(weekdays[today.getDay()], ",
    ",months[today.getMonth()], " ",today.getDate(), ",
    ",today.getFullYear())
    //-->
    </script>[/CODE]

    This is correct(js) ?
    [CODE]<script type="text/javascript">
    var d = new Date();
    gmt=d.toUTCString(); // get GMT Time/date
    // document.write (d.toUTCString());
    var gmt2ms = new Date(gmt.valueOf()+60*60*1000*2); // add two
    hours in ms
    document.write(gmt2ms.toString()); // write date as Sun, 25
    May 2008 14:19:30
    </script>[/CODE]
    What the
    x.valueOf()
    x.toString()
    do ?

  • DP background jobs in local time zone

    We are using APO DP in an international environment (SCM 4.1). We have setup up the system, that is using the local time zone (personal user settings), which is working fine in interactive planning (data views & macros). But when executing the macros
    in background (APO background jobs triggered immediately by a process chain), the macro is run based on the server time and not in the local time zone. The ALEREMOTE user is set up in the same way online users regarding time zone settings.
    Can someone explain, why the local time zone isn't used in the macros when executing in background, and tell me which setting we have missed.
    Many thanks in advance
    Marco

    HI,
    I understand the issue, the issue is the Australia gets days very first from the world.. it almost GMT+11 hrs. will almost a day difference to US.
    I am not sure whether my proposal will make sense, but let me try
    As the month completes we will copy the sales history  for the closed month. where technically the the month is current month as per the system time.
    Why can not change the macro to copy current period and run at system time? i am not sure aobut the otherconstriantes.
    But looking at your question, it could be possible where your client has the local time zone defined. you can check the same from any APO screen, from menu > systems->status. you can see both time zone ( local) system time.
    I suggest you check with basis if we can use the local time zone, we can use the localtimezone but agian everyone has to use our local time.. NO SENSE i guess..
    Yarala

  • Need function module to convert system time to local time

    Hi Experts,
    Need function module to convert system time to local time.
    i.e country specific that to in HH:MM format.
    Thanks in advance.

    Dear Prince,
    Kindly check the following link which contains the list of function modules for date and time conversion.
    [http://www.sap-img.com/abap/date-month-pop-related-function-modules.htm]
    Regards

  • Create table interval partition on a column timestamp with local time zone

    Hi
    Does anyone have an example for 11g on how to create a table with interval partitioning on a column defined as timestamp with local time zone. I know it's possible. the following does not work.
    CREATE TABLE KOMODO_EXPIRED_RESULTS
    TEST_EVENT_KEY NUMBER NOT NULL,
    HPS_DEVICE_KEY NUMBER NOT NULL,
    RCS_DEVICE_KEY NUMBER,
    EVENT_START_TIMESTAMP TIMESTAMP(6) with local time zone NOT NULL,
    BOOTROMVERSION NUMBER,
    CHANNELNUMBER NUMBER,
    CLIENTVERSION VARCHAR2(4000 BYTE),
    ETHERNET_CRC_ERROR_COUNT NUMBER,
    ETHERNET_DROPPED_PACKETS NUMBER,
    ETHERNET_THROUGHPUT NUMBER,
    ETHERNET_TRAFFIC_IN NUMBER,
    ETHERNET_TRAFFIC_OUT NUMBER,
    IPADDRESS VARCHAR2(4000 BYTE),
    KOMODO_ID VARCHAR2(4000 BYTE),
    LASTREBOOTTIME VARCHAR2(4000 BYTE),
    OSVERSION VARCHAR2(4000 BYTE),
    RECEIVER_AUDIOACCESSCONTROLER NUMBER,
    RECEIVER_AUDIOBUFFEROVERFLOWS NUMBER,
    RECEIVER_AUDIOBUFFERUNDERRUNS NUMBER,
    RECEIVER_AUDIOCODEC VARCHAR2(4000 BYTE),
    RECEIVER_AUDIODATADROPPED NUMBER,
    RECEIVER_AUDIODATATHROUGHPUT NUMBER,
    RECEIVER_AUDIODECODERERRORS NUMBER,
    RECEIVER_AUDIODESCBUFFERUNDER NUMBER,
    RECEIVER_AUDIODESCCRYPTOERROR NUMBER,
    RECEIVER_AUDIODESCDATADROPPED NUMBER,
    RECEIVER_AUDIODESCDATATHROUGH NUMBER,
    RECEIVER_AUDIODESCDECODERERRO NUMBER,
    RECEIVER_AUDIODESCDRMERRORS NUMBER,
    RECEIVER_AUDIODESCPTSDELTA NUMBER,
    RECEIVER_AUDIODESCPTSDELTAHAL NUMBER,
    RECEIVER_AUDIODESCSAMPLESDROP NUMBER,
    RECEIVER_AUDIODSPCRASHES VARCHAR2(4000 BYTE),
    RECEIVER_AUDIOPTSDELTAHAL NUMBER,
    RECEIVER_AUDIOSAMPLESDECODED NUMBER,
    RECEIVER_AUDIOSAMPLESDROPPED NUMBER,
    RECEIVER_AUDIOUNDERRUN NUMBER,
    RECEIVER_BITRATE NUMBER,
    RECEIVER_BUFFEROVERRUN NUMBER,
    RECEIVER_BYTESCCRECEIVED NUMBER,
    RECEIVER_BYTESRECEIVED NUMBER,
    RECEIVER_CHANNEL NUMBER,
    RECEIVER_DECODERSTALL NUMBER,
    RECEIVER_DISCONTINUITIES NUMBER,
    RECEIVER_DISCONTINUITIESPACKE NUMBER,
    RECEIVER_DRIFT NUMBER,
    RECEIVER_DROPPEDPACKETSUNTILR NUMBER,
    RECEIVER_ECMLOOKUPERROR NUMBER,
    RECEIVER_ECMPARSEERRORS NUMBER,
    RECEIVER_PMTCHANGED NUMBER,
    RECEIVER_REBUFFER NUMBER,
    RECEIVER_SELECTCOMPONENTAUDIO NUMBER,
    RECEIVER_TIMELINEDISCONTINUIT NUMBER,
    RECEIVER_VIDEOACCESSCONTROLER NUMBER,
    RECEIVER_VIDEOACCESSCONTROLUN NUMBER,
    RECEIVER_VIDEOBUFFEROVERFLOWS NUMBER,
    RECEIVER_VIDEOBUFFERUNDERRUNS NUMBER,
    RECEIVER_VIDEOCODEC VARCHAR2(4000 BYTE),
    RECEIVER_VIDEOCRYPTOERROR NUMBER,
    RECEIVER_VIDEODATADROPPED NUMBER,
    RECEIVER_VIDEODATATHROUGHPUT NUMBER,
    RECEIVER_VIDEODECODERERRORS NUMBER,
    RECEIVER_VIDEODRMERRORS NUMBER,
    RECEIVER_VIDEODSPCRASHES VARCHAR2(4000 BYTE),
    RECEIVER_VIDEOFIFORD NUMBER,
    RECEIVER_VIDEOFIFOSIZE NUMBER,
    RECEIVER_VIDEOFRAMESDECODED NUMBER,
    RECEIVER_VIDEOFRAMESDROPPED NUMBER,
    RECEIVER_VIDEOPTSDELTA NUMBER,
    RECEIVER_VIDEOPTSDELTAHAL NUMBER,
    RECEIVER_VIDEOUNDERRUN NUMBER,
    SUBNETMASK VARCHAR2(4000 BYTE),
    TUNER_BITRATE NUMBER,
    TUNER_BUFFERFAILURE NUMBER,
    TUNER_CCPACKETSRECEIVED NUMBER,
    TUNER_CHANNEL NUMBER,
    TUNER_DATATIMEOUTS NUMBER,
    TUNER_DELIVERYMODE VARCHAR2(4000 BYTE),
    TUNER_DROPPAST NUMBER,
    TUNER_FILL NUMBER,
    TUNER_HOLE NUMBER,
    TUNER_HOLEDURINGBURST NUMBER,
    TUNER_HOLEDURINGBURSTPACKETS NUMBER,
    TUNER_HOLETOOLARGEPACKETS NUMBER,
    TUNER_MAXIMUMHOLESIZE NUMBER,
    TUNER_MULTICASTADDRESS VARCHAR2(4000 BYTE),
    TUNER_MULTICASTJOINDELAY NUMBER,
    TUNER_OUTOFORDER NUMBER,
    TUNER_OVERFLOWRESET NUMBER,
    TUNER_OVERFLOWRESETTIMES NUMBER,
    TUNER_PACKETSEXPIRED NUMBER,
    TUNER_PACKETSPROCESSED NUMBER,
    TUNER_PACKETSRECEIVED NUMBER,
    TUNER_PACKETSWITHOUTSESSION NUMBER,
    TUNER_PARSEERRORS NUMBER,
    TUNER_SRCUNAVAILABLERECEIVED NUMBER,
    TUNER_TOTALHOLEPACKETS NUMBER,
    TUNER_TOTALPACKETSEXPIRED NUMBER,
    TUNER_TOTALPACKETSRECEIVED NUMBER,
    TUNER_UNICASTADDRESS VARCHAR2(4000 BYTE),
    RECEIVER_TUNEDFOR NUMBER,
    MACADDRESS VARCHAR2(4000 BYTE),
    RECEIVER_TOTALAVUNDERRUNS NUMBER,
    RECEIVER_TOTALDISCONTINUITIES NUMBER,
    SERVICEID VARCHAR2(4000 BYTE),
    DRIVEPRESENT VARCHAR2(4000 BYTE),
    STB_STATE VARCHAR2(32 BYTE),
    PREV_EXPIRED NUMBER,
    PREV_HOLES NUMBER,
    PREV_RECEIVED NUMBER,
    PREV_TIMESTAMP TIMESTAMP(6),
    PREV_REBOOT VARCHAR2(4000 BYTE),
    TOTALPACKETSEXPIRED_RATE NUMBER,
    TOTALHOLEPACKETS_RATE NUMBER,
    TOTALPACKETSRECEIVED_RATE NUMBER,
    CONSTRAINT KOMODO_EXPIRED_RESULTS_PK
    PRIMARY KEY
    (HPS_DEVICE_KEY, EVENT_START_TIMESTAMP)
    USING INDEX
    TABLESPACE HPS_SUMMARY_INDEX
    TABLESPACE HPS_SUMMARY_DATA
    PARTITION BY RANGE (EVENT_START_TIMESTAMP)
    INTERVAL( NUMTODSINTERVAL(1,'DAY'))
    PARTITION DEFAULT_TIME_PART_01 VALUES LESS THAN (TIMESTAMP' 2010-08-01 00:00:00.000000000 +00:00')
    LOGGING
    COMPRESS FOR ALL OPERATIONS
    TABLESPACE HPS_SUMMARY_DATA
    NOCACHE
    PARALLEL ( DEGREE DEFAULT INSTANCES DEFAULT )
    MONITORING
    /

    I am not sure it can be done.
    SQL> create table sales
      2  (
      3  sales_id number,
      4  sales_dt TIMESTAMP(6) with local time zone NOT NULL
      5  )
      6  partition by range (sales_dt)
      7  interval (numtoyminterval(1,'MONTH'))
      8  ( partition p0901 values less than (to_date('2009-02-01','yyyy-mm-dd')) );
    create table sales
    ERROR at line 1:
    ORA-14751: Invalid data type for partitioning column of an interval partitioned
    table
    SQL> ed
    Wrote file afiedt.buf
      1  create table sales
      2  (
      3  sales_id number,
      4  sales_dt TIMESTAMP(6)
      5  )
      6  partition by range (sales_dt)
      7  interval (numtoyminterval(1,'MONTH'))
      8* ( partition p0901 values less than (to_date('2009-02-01','yyyy-mm-dd')) )
    SQL> /
    Table created.

  • How to change timezone in B2B to reflect date fields per local time in DB

    Hi,
    I am in EST zone and I could see the data in database with date columns having time in PST. One of my transaction just errorred , I could see from B2B user interface tool error report message date time as 2:14 EST, while when I check the database values from TOAD the value is 11:14, which indicates there is some setup which might have caused to update Pacific Time in the database, I am not sure what could be the setup. Can anyone please indicate or provide inputs on what could be the cause and how to set up the application so that the date type data is updated with local time in database.
    Thanks
    Sachin Sutar

    Hi Sachin,
    We store the message using the database time. It seems like the database time zone is set to PST. To change it to a different time zone, please follow the instructions on this link:
    http://www.oracle.com/technology/products/oracle9i/daily/may02.html
    Hope this helps,
    Eng

  • Issue regarding local time

    Hi,
    Assume that an application with db data are supposed to be installed in London (in a data center) whereas ... all users who would connect to this db are in Greece.
    The db time zone would be of London ... which means that the date-time data would be saved to the database to this time ... whereas the local time zone(of users) is different... The local users (in Greece) must see the local time and not that of London....
    Of course , a solution to this could be of using for datetime db columns the TIMESTAMP WITH LOCAL TIME ZONE datatype instead of date.
    But this imposes a different data schema.... (replacement of all date datatype to TIMESTAMP WITH LOCAL TIME ZONE) , which cannot be done.....
    Can you consider any other solution....?????
    Note: I use Oracle10g v.2 .....
    Thanks....
    Sim

    I do believe you can set the client time zone via OS environment variables I think that is not practical and possible since all Greek people , theoretically of course, could use the services provided by the web application....
    So , how to set the client time zone via OS env variable in client machines of all people who i do not know if ever would connect or not....?????
    However how can it be done....(the settting of the client time zone via OS environment variables)???
    Am i considering something wrong....?????
    though the best solution would probably be to convert the application to use timestamps with time zone info.To make this solution applicable , i consider that i have to alter all date datatype of the schema to timestamp with local time zone datatype.... and of course all the code.... in the application.......
    It may be the better solution but it cannot be done since ... the tables are over 2000 , the db packages/procedures/functions are approximately 100 , let alone the application package/procedure/function......
    I think , considering the conditions expressed above , the best solution is using the current_date function in order to register the datetime according to the specific time zone ... I simply have to replace the sysdate with current_date.....
    The only problem , which would make me to follow the solution with timestamp with local time zone datatype, is when people from different areas in the wolrd - with various time zones would use the application......
    And something else....
    Don't forget that Greece has just one time zone...+02:00
    Thanks.... for your ideas
    Sim

Maybe you are looking for

  • Smartforms help

    hi folks, I have been successfully displaying the data in the body of the form (i.e pulling all the data into the fields) in the form. My question is the data is not getting displayed on the same line in all the fields, because in some fields it just

  • More Questions

    For some reason this will return yes when you click ok but won't return no if you click cancel: if (display dialog "what a strange" & return & "SCRIPT") is {button returned:"OK"} then return yes else return no end if Also how do you get a new window

  • From Query's name, how could i find the corresponding Infoset's name?

    Thanks!! If i know a Query's name, how to do could i find its corresponding Infoset's name?? Query's name---->Infoset's name. Thanks!!!

  • Transfer photo/video files from iPhone 5 to MacBook?

    I was able to complete steps #1 and #2 of the iTunes help offered under "Transfer files from your iPod Touch, iPhone, or iPad to your computer" but for step #3, "Below File Sharing..."  there was no File Sharing menu or ability to choose the Photos a

  • Currently updated / Inserted data selection

    Dear Experts, Following is my table structure : CREATE TABLE RR_SYSTEM_ERROR PTYPE CHAR(1 BYTE), CODE1 CHAR(5 BYTE), CODE2 CHAR(5 BYTE), QNO CHAR(5 BYTE), ERR_DESC VARCHAR2(1000 BYTE), DATE_STAMP TIMESTAMP(6) Data : PTYPE CODE1 CODE2      QNO      ER