How to remove time zone offset when we use a number as a relative time variable?

Hi everyone!
I've a small doubt in using a number as a relative time. If I change the display properties of a numeric to relative time, it takes default value "5:30 AM", may be because I'd set time zone to Indian time during installation ( India is 5:30 hours ahead of Greenwhich). I want it to take default value "12:00 AM'. Please help me how I do it?
( I can also subtract 5:30 hours and get the same. But I want that to have "12:00 AM" by default......?!)
Thank you all..!
pavamana

pavamana_pk wrote:
Hi everyone!
I've a small doubt in using a number as a relative time. If I change the display properties of a numeric to relative time, it takes default value "5:30 AM"
As Ravens already stated, you are using ABSOLUTE time.  Relative time can only be set to display hours, minutes, and/or seconds.
There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines

Similar Messages

  • How get current time zone offset ?

    Hi,
    I am facing to a problem related getting time zone offset.
    Below code is used for my application :
    NSDate* sourceDate = [NSDate date];
    NSTimeZone* destinationTimeZone = [NSTimeZone systemTimeZone];
    timeZoneOffset = [destinationTimeZone secondsFromGMTForDate:sourceDate] / 3600;
    But sometimes seems that above code is getting work wrong. For example :
    Knoxville, TN : time zone offset should be -5. But my code resulted it as -4.
    http://www.timeanddate.com/worldclock/city.html?n=843
    This web is related my issue. Here is :
    Standard time zone: UTC/GMT -5 hours
    Daylight saving time: +1 hour
    Current time zone offset: UTC/GMT -4 hours
    Actually I don't know how get to "Daylight saving time:".
    Can you correct this issue for me ?
    Please advice.
    Thanks.

    Hi Raiden -
    RaidenMAC wrote:
    Knoxville, TN : time zone offset should be -5. But my code resulted it as -4.
    I think your code is giving you the correct offset for Knoxville on today's date. The offset for Eastern Standard Time (EST) is -5, but Knoxville is currently on Eastern Daylight Time (EDT), which is one hour later than EST. (-5) + 1 => (-4), which is what your code computed.
    Note that [secondsFromGMTForDate:|http://developer.apple.com/library/ios/documentation/Co coa/Reference/Foundation/Classes/NSTimeZoneClass/Reference/Reference.html#//appleref/doc/uid/20000190-CACDIAIC] is correcting for daylight savings time. That's why you need to pass the date to that method. If you pass a "summer" date, the return offset will be one hour more than it will be for a "winter" date (usually early November to mid March). For example, try moving the date forward 60 days like this:
    NSDate *sourceDate = [NSDate dateWithTimeIntervalSinceNow:3600 * 24 * 60];
    NSTimeZone* destinationTimeZone = [NSTimeZone systemTimeZone];
    int timeZoneOffset = [destinationTimeZone secondsFromGMTForDate:sourceDate] / 3600;
    NSLog(@"sourceDate=%@ timeZoneOffset=%d", sourceDate, timeZoneOffset);
    The above should give you the offset for Knoxville on Dec. 7, 2010, which is a winter date.
    Actually I don't know how get to "Daylight saving time:".
    You can test a NSTimeZone object with [isDaylightSavingTimeForDate:|http://developer.apple.com/library/ios/documentat ion/Cocoa/Reference/Foundation/Classes/NSTimeZoneClass/Reference/Reference.html#//appleref/doc/uid/20000190-CHDCJGHE], but you don't need that information when you obtain the offset with secondsFromGMTForDate:.
    - Ray

  • Time Zone Offset - Date Format question

    I'm wondering if any one knows how to display the time zone offset of a date in the following format "[+-]HH:mm." More so... I need the date/time in the ISO 8601 format "yyyy-MM-dd'T'HH:mm:ss[+-]HH:mm", where the last [+-]HH:mm is the hour representation of the offset. Here's some sample code...
    SimpleDateFormat sdf1 = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss");
    Calendar rightnow= Calendar.getInstance();
    // So if system date/time is February 14, 2002 at 1:15:00 PM EST, this would produce "2002-02-14T13:15:00"
    System.out.println("Current Datetime" + sdf1.format rightnow.getTime());
    How can I get the timezone offset appended to my output in a [+-]HH:mm format. So, the above date needs to look like "2002-02-14T13:15:00-05:00". I can get the offset in milliseconds by doing the following:
    int offset1 = rightnow.get(rightnow.ZONE_OFFSET) + rightnow.get(rightnow.DST_OFFSET);
    But how can you get this representation into the [+-]HH:mm format?
    thanks in advance,
    stophman

    Try something like this:import java.text.* ;
    import java.util.* ;
    static public String formatISO8601(Calendar cal) {
         * create ISO 8601 formatter for Calendar objects
        MessageFormat iso8601 = new MessageFormat("{0,time}{1,number,+00;-00}:{2,number,00}") ;
        // need to shove a date formatter that is cognizant of the
        // calendar's time zone into the message formatter
        DateFormat df = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss") ;
        df.setTimeZone(cal.getTimeZone()) ;
        iso8601.setFormat(0, df) ;
         * calculate the time zone offset from UTC in hours and minutes at the current time
        long zoneOff = cal.get(Calendar.ZONE_OFFSET) + cal.get(Calendar.DST_OFFSET) ;
        zoneOff /= 60000L ;  // in minutes
        int zoneHrs = (int) (zoneOff / 60L) ;
        int zoneMins = (int) (zoneOff % 60L) ;
        if (zoneMins < 0) zoneMins = -zoneMins ;
        return (iso8601.format(new Object[] {
                                    cal.getTime(),
                                    new Integer(zoneHrs),
                                    new Integer(zoneMins)
    }

  • How can I prevent firefox to Offer to save passwords and how to remove the tick checked when I log in to gmail?

    While using firefox I am using, private browsing and not remembering any passwords.
    When I login to Gmail, the login page shows option to type in my gmail id and then password, and at the bottom, it gives the option of checkbox to remember the password next time. NOW, the problem is that, THIS CHECK box is always TICKED (Checked). I don't want it to be checked at all.
    So How can I prevent firefox to Offer to save passwords and how to remove the tick checked when I log in to gmail?
    Thank you so much.

    Hi Imran_Afzal, if you know that setting the cookie has no effect after you close your private browsing session, is it really worth finding a hack to clear the checkbox?
    I believe in order to do that you would need to use an extension or userscript. However, I haven't searched for one.
    ''Note: When searching for a userscript on userscripts.org, be very cautious as many hacked scripts have been posted lately. Check reviews and check the code to make sure it only runs on your Google site before installing.''

  • HT1595 how do i access apple tv when screen is stuck at setting date and time

    how do i access apple tv when screen is stuck at setting date and time, have unplugged system,restarted router....

    Welcome to the Apple community.
    Assuming this is not the first time you have used your Apple TV
    You might try restarting the Apple TV by removing ALL the cables for 30 seconds.
    Also try restarting the router.
    If the problem persists, try a restore, you may want to try the previous procedures several times before doing this.
    If this is a new Apple TV, it may also be that your network router is not allowing access to the timeserver, check that your router allows access over port 123.

  • How to remove save, cancel option when end user runs the workbook in Portal

    Hi,
    how to remove save, cancel option when end user runs the workbook and make some small changes like using page items or increasing rows and columns
    I already made 2 changes
    1) I removed the option in Oracle Enterprise Manager under discoverer viewer of saving
    2) I also removed the option of Allow saving changes made in Viewer when adding workbook to portal
    But still the end user gets options of saving when made small changes to workbook like increasing rows and columns
    Is their any place, I need to make changes?
    Thanks in Advance
    Rowdheer

    Don't use JSP to serve a binary file. It almost implies the use of awful scriptlets and the invocation of both the response writer and the response outputstream which would only lead to IllegalStateException headaches in the server logs.
    Use a Servlet instead. Specify the file name as request parameter and let the servlet read the file and write it to the outputstream of the response.

  • Retrieve System Time Zone Offset?

    Hi, I'm doing some GPS emulation and need to retrieve the system Time Zone Offset in (Hour and Minute). For example if Mountain time zone offset hour = -7 and Minute = 00. Is this information possible to get in Labview?
    Thanks.

    Hello QRP,
    Yes, it can be done, but this way is not very elegant. It will get the GMT offset that your PC has as its current setting.
    Use Format Date/TIme String with a format string of "%z". The output is the offset as a STRING formatted HH:MMS
    Break the string apart with Scan From String to get the individual elements, or by using "%t" as the format, get the offset in seconds.
    Rod.
    EDIT: There shouldn't be a smiley in the time format above, It's "HH : MM : SS" but ignore the spaces!

  • I'm having time zone issues when sharing calendars

    I made a schedule when I was in the Mtn. Time zone. Now here in the Pacific Time Zone it's showing up an hour earlier. Is there a way to change a large number of events to one hour later?

    Harvey,
    Have you used the "Turn on time zone support" setting in iCal>Preferences...>Advanced?
    "Select this checkbox to be able to see your events in different time zones. When the checkbox is selected, you can change the time zone for all your events in the top-right corner of iCal, and you can choose a different time zone for individual events in the event editor."

  • Customising SYSDATE using time-zone offset

    Situation:
    A database instance is configured with multiple schemas with each holding data for a company. A set of Oracle Forms and Reports programs has been developed to run against each of these schemas.
    However, there are few overseas companies phyiscally located in different time zone with respect to the database location.
    Is there a way to "customise" sysdate to generate "adjusted" date/time value using the time zone offset "without changing the programs" (in Forms, Reports and dbms)? Most of the programs use sysdate to populate date-specific fields.
    Please advise.
    Thanks

    Sysdate is sysdate-- it can't be changed on a session-by-session basis. You could write your own sysdate-like function, but that would require code changes. If you are making code changes, and you're on 9i, I would suggest using a TIMESTAMP WITH TIMEZONE data type.
    Justin
    Distributed Database Consulting, Inc.
    http://www.ddbcinc.com/askDDBC

  • How do i get the date when enter a week number

    Hi, can anyone tell me how do i get the date when enter a week number??
    let say, i enter week number 4 and year 2008
    result=26-01-2008
    thanks..

    import java.util.Calendar;
    public class testCalendar {
         public static void main(String args[]){              
              int year=2008;
              int week =5;
              Calendar now=Calendar.getInstance();
              now.set(Calendar.YEAR,year);
    now.set(Calendar.WEEK_OF_YEAR,week);
              System.out.println(now.getTime());          
    hai, anyone know why i can't get the result:27-01-2008
    i always get two day later. That is 29-01-2008
    no wonder how i change the week number and year.
    for example: week=7, year=2007
    expected result:11-02-2007
    but the result is 13-02-2007
    thanks..
    Edited by: Angel_Wei on Sep 1, 2008 11:58 PM

  • At the time of call when i use speaker my sound is not visible to the prsn i call

    at the time of call when i use speaker my sound is not visible to the prsn i call

    Hello smarty007,
    Thanks for the question, and welcome to Apple Support Communities.
    From your description, it sounds like you are having issues with others hearing you while using speakerphone. For these symptoms, the following article provides the most relevant information. On the iPhone 4, it is commonly due to a third-party case blocking the top microphone:
    iPhone: Hardware troubleshooting
    http://support.apple.com/kb/TS2802
    Additionally, you can check out these articles:
    iPhone: Sound muffled or low from the speaker or when speaking into the mic
    http://support.apple.com/kb/TS1631
    iPhone: Can't hear through the receiver or speakers
    http://support.apple.com/kb/TS1630
    Thanks,
    Matt M.

  • How to maintain, the validity internal when we use non commulative key figu

    Hi Friends,
    I would like to check, I've created query on Inventary infocube, when we trying to execute the report, I'm getting the following error.
    The validity internal has the initial value as lower limit
    Generally, How we will maintain validity internal when we use non cumulative key figures.
    Can anybody have some idea about this.
    Siri

    You need to maintain the validity period on which your stock can be calculated. The user will see special values when asking for stock outside this period (don't remember the special value).
    It can be a fixed period (in a first step, I will recommend that). For instance : from 01.01.1000 to 31.12.9999. Thus you will never have any error.
    It can also be a dynamic period (generally linked to the last data load).
    Regards,
    Fred

  • HT2513 How 2 remove duplicates in iCalendar? I used mobile me 1x n it massed up d things. I even hv 25 duplcts on my entries n on my iPad as well..

    How 2 remove duplicates in iCalendar? I used mobile me 1x n it massed up d things. I even hv 25 duplcts on my entries n on my iPad as well..

    How 2 remove duplicates in iCalendar? I used mobile me 1x n it massed up d things. I even hv 25 duplcts on my entries n on my iPad as well..

  • My iPad getting very warm when i use it for bit in longer time

    Why my ipad is getting very warm when i use it for bit in longer time, any body has same experience?, Why my ipad is getting very warm when i use it for bit in longer time, any body has same experience?

    The Temperature warning usually appears when the iPad has been set in a place where it gets so hot to the touch that you'd almost burn your hands if you picked it up. The temperature caused by the processor or charging the battery should never reach that level. If you feel your pad is too warm when you are using it Make an appointment at an Apple Store to have your device examined by a technician. Or contact Apple Support.

  • How to access the Text Frame, when we use scrollable frame,

    Hi Friends,
    How to access the Text Frame, when we use scrollable frame,
    Thank you,
    [ Nav ]

    That's the same question:
    how can I access something (a page item) on a page…
    Answer: you need something unique in that object you can get a handle on.
    Or you use the selection a user of your script is doing and work with that selection…
    A "scrollable frame" is nothing special. What it makes it a "scrollable frame" is the DPS software.
    So you have to look for attached labels on the object, that identify the object for the PDS plug-in "Overlay Creator" as a "scrollable frame". That's possible with the "extractLabel("KeyString")" function. But you need to know the appropriate key-string in advance.
    In another of your thread in the DPS forum, I basically answered the question how to obtain those key-strings.
    When knowing the key-string you could loop through all your page items (you can skip all text frames) in the allPageItems-collection, to identify the "scrollable frame" by extracting the right label.
    If you have more than one "scollable frames" you need a second unique identifier for the particular object.
    That could be nearly any property.
    Keep in mind, there is no "scrollableFrames" collection in the DOM !
    Uwe

Maybe you are looking for

  • Set operations on Internal tables.

    Hi,   Last week i had to enhance a program that has a internal table with some records. I need to find populate a table with the records in the internal table. But before populating i must find out the difference in the records (i.e) the extra record

  • Archivability check?

    I am trying to use SARA to archive Vendor (FI_ACCPAYB) and customer (FI_ACCRECV) master data and I want to know what checks the system uses to determine if a record is archivable. For example does it check that there are no transactions in the system

  • My iphone was stolen today,there is a way to close the app??

    i lost my photos,sms,diary... there is a way to find or to stop them,so the ******* that stolen my iphone don't saw nothing?

  • How can i play Videos as part of a playlist, along with songs?

    Hi I've had an ongoing problem for some time now, and i cant really find a method, or an option, to make it work. Basically, i have Videos (Films), that are music, and i've put them into the same playlist as some of my other similar songs, however th

  • Unable to install Flash Player Version 17.0.0.134 in Windows 7 64-bit

    "Unable to install Flash Player Version 17.0.0.134 in Windows 7 64-bit" All I get is a Black box "Installing" and nothing happens for hours & hours. I have tried downloading from the archives, an older, working version of Flash Player.  Works on many