What you wanted to know about Time values

Hello
I tried to gather in a single document the useful infos about the use of time values in Numbers.
I must thanks pw1840 which checked the English syntax.
Here is the text only document.
Files with the sample tables are available on my iDisk:
<http://idisk.me.com/koenigyvan-Public?view=web>
Download:
ForiWork:ForNumbers:Time in Numbers.zip
*STORED DATE-TIME VALUES - BASICS*
Numbers clearly states that it stores date-time values, no less no more. This means these values consist of two parts: a date and a time. It is important to note that both parts are present even if only one of them is displayed.
When we type the time portion only, it includes the current date even though it may not be displayed.
But when we apply the formula: =TIME(0,0,ROUND(TIMEVALUE(B)24*6060,0)), we get a date-time value whose numerical value of the date portion is 0. This means, in AppleLand, 1 janvier 1904. Such a date-time allows us to make correct calculations, but there are two true drawbacks:
1) Since TIMEVALUE() returns a decimal number, when we calculate the corresponding number of seconds we MUST use the ROUND() function. While calculations with decimal numbers give the wanted value, they may not be exact and be off by + or - epsilon. And
2) The structure of Numbers date-time values is such that the time part is always in the range 0:00:00 thru 23:59:59.
There is also a detail which seems annoying to some users. The minimal time unit is the second because time values are in fact a pseudo string representing the number of seconds between the date-time and the base date-time, 1 janvier 1904 00:00:00.
-+-+-+-+-
*TIMEVALUE() FUNCTION*
When Numbers Help states that the TIMEVALUE() function "converts a date, a time, or a text string to a decimal fraction of a 24-hour day.", it means that the operand for the function TIMEVALUE() may be something like:
31/12/1943, 31 décembre 1943, or 31 déc. 1943 described as a date;
1:12:36 or 1:12 described as time; or
31/12/1943 23:59:59 described as a text string.
The date may also be 31/12/43 but here the program must guess the century. According to the rule, this one will be 31/12/2043 (yes, I am very young).
All of this is not exactly what we are accustomed to but it is perfectly logical as described. My guess is that those who don't understand are simply clinging to old habits and are reluctant to adopt an unfamiliar approach .
-+-+-+-+-
*ELAPSED TIME (DURATION)*
Given a table whose 1st row is a header, I will assume that column B stores starting-time values and column C stores ending-time values. Both do not display the date component of the date-time values. We may get the difference in column D with the formula:
=IF(OR(ISBLANK(B),ISBLANK(C)),"",TIMEVALUE(C)-TIMEVALUE(B))
which returns the elapsed time as the decimal part of the day.
We immediately encounter a problem. If ending-time is the day after the starting-day, the result will be negative. So it would be useful to revise the formula this way:
=IF(OR(ISBLANK(B),ISBLANK(C)),"",IF(TIMEVALUE(C)>TIMEVALUE(B),0,1)+TIMEVALUE(C) -TIMEVALUE(B))
But some of us may wish to see results in the traditional format which may be achieved using:
=IF(OR(ISBLANK(B),ISBLANK(C)),"",TIME(0,0,ROUND((IF(TIMEVALUE(C)>TIMEVALUE(B),0 ,1)+TIMEVALUE(C)-TIMEVALUE(B))24*6060,0)))
-+-+-+-+-
*DURATION SUMS > or = 24 HOURS*
In the examples above, we always assumed that the durations where smaller than 24 hours because Numbers states clearly in the Help and the PDF Users Guide that time values are restricted to the range 00:00:0 to 23:59:59. For longer durations we must fool Numbers.
First problem: we are adding several time durations. Each duration is in the authorized range and the result is greater than 24 hours.
As before, starting-time values are in column B, ending-time ones are in column C, and the elapsed time value is in column D. The formula is:
=IF(OR(ISBLANK(B),ISBLANK(C)),"",IF(TIMEVALUE(C)>TIMEVALUE(B),0,1)+TIMEVALUE(C) -TIMEVALUE(B))
in column E, the formula for the cumulative elapsed time value is:
=SUM($D$2:D2)
in column F, converting to time format, the formula is:
=TIME(0,0,ROUND(MOD(E,1)24*6060,0))
in column G, the formula for showing more than 24 hours in the day/hour/minute format is:
=IF(E<1,"",INT(E)&IF(E<2," day "," days "))&F
in column H, expressing total elapsed time in total hours using the traditional time format, the formula is:
=IF(E<1,F,INT(E)*24+LEFT(F,LEN(F)-6)&RIGHT(F,6))
in column I, expressing total elapsed time in total hours using the traditional time format, an alternate formula is:
=IF(E<1,F,INT(E)*24+HOUR(F)&":"&RIGHT("00"&MINUTE(F),2)&":"&RIGHT("00"&SECOND(F ),2))
Of course the user would choose the format used in column G or the one in column I for his table. There is no need to keep all of them. It would be fine to hide column F whose contents are auxiliary.
Second problem: individual durations may be greater than 23:59:59 hours.
Again, column B is used to store starting date-time, column C stores ending date-time, and durations are calculated in column D. Since B and C are storing full date-time values, we may use this simple formula to find the duration:
=C-B
in column E, the time portion of the duration given in time format is:
=TIME(0,0,ROUND(MOD(D,1)24*6060,0))
in column F the formula to show the duration as days/hours/minutes is:
=IF(D<1,"",INT(D)&IF(D<2," day "," day(s "))&E
in column G we give the elapsed time in total hours using a time format. The formula is:
=IF(D<1,E,INT(D)*24+LEFT(E,LEN(E)-6)&RIGHT(E,6))
in column H we give the elapsed time in total hours using a time format. An alternate formula is:
=IF(D<1,E,INT(D)*24+HOUR(E)&":"&RIGHT("00"&MINUTE(E),2)&":"&RIGHT("00"&SECOND(E ),2))
If the duration is greater than 24 hours, the results in columns E and F are not a time value but a string. So the value in column D (which is time duration only) is useful.
-+-+-+-+-
*PROBLEM WITH ENTERING TIME*
When you wish to enter 12:34 but 12 is the number of minutes, remember that Numbers will decipher this as 12 hours and 34 minutes. Simple tip:
Assuming that your original entry is in column B, then in column C use this formula to align the minutes and seconds for proper Numbers interpretation:
=IF(ISERROR(TIME(0,LEFT(B,SEARCH(":",B)-1),RIGHT(B,LEN(B)-SEARCH(":",B)))),"",T IME(0,LEFT(B,SEARCH(":",B)-1),RIGHT(B,LEN(B)-SEARCH(":",B))))
-+-+-+-
*MISCELLANEOUS NOTES*
• Of course, the addition of two dates and multiplication or a division applied to one date means nothing and would generate the red triangle announcing a syntax error.
• We may add a time value to a date-time: If B contains a date-time and C contains a time, the following formula will return the sum of the two values:
=B+TIMEVALUE(C)
• We may strip the time value of a full date-time one with the formula: =DATE(YEAR(B),MONTH(B),DAY(B))
• Just as a reminder,
=EDATE(B, 3) adds 3 months to the pure date stored in B
so, of course,
=EDATE(B, 12) adds one year to the pure date stored in B
• If B and C store date-time values,
=C-B returns the difference in decimal days.
=DATEDIF(B,C,"D") returns the number of days between the two pure dates. It's identical to =DATE(YEAR(C),MONTH(C),DAY(C))-DATE(YEAR(B),MONTH(B),DAY(B))
=DATEDIF(B,C,"M") returns the number of months between the two pure dates.
=DATEDIF(B,C,"Y") returns the number of years between the two pure dates.
Three other variants are available which use the parameters "MD","YM" and "YD".
Yvan KOENIG (from FRANCE lundi 25 août 2008 15:23:34)

KOENIG Yvan wrote in his "*STORED DATE-TIME VALUES - BASICS*" section:
The minimal time unit is the second because time values are in fact a pseudo string representing the number of seconds between the date-time and the base date-time, 1 janvier 1904 00:00:00.
This is not exactly true. Numbers files store date-time values in a string format consistent with ISO 8601:2004. This format explicitly includes year, month, day, hour, minute, & second values.
This may be verified by examining the uncompressed index.xml file in a Numbers package. For example, the first day of 1904 is stored as cell-date="1904-01-01T00:00:00+0000" & of the year 0001 as cell-date="0001-01-01T00:00:00+0000." This format is not a numeric value of seconds from a base date-time, often referred to as a "serial time" format, that is used in applications like AppleWorks (or Excel?).
Note that the time value (all that follows the "T" in the string) actually has four components, the last one (following the plus) representing the time zone offset from UTC time in minutes. AFAIK, Numbers does not set this to anything besides "+0000" but interestingly, it will attempt to interpret it if set by manually editing the file. For example, change cell-date="1904-01-01T00:00:00+0000" to cell-date="1904-01-01T00:00:00+0120" & the cell will display the last day of December of 1903 as the date, but will still show the time as 00:00:00. This suggests a future version of Numbers might be time zone aware, but currently it is unreliable & not fully implemented.
Anyway, Numbers does not use the first day of 1904 as a reference for stored date-time values, although it will add that date to "dateless" time values imported from AppleWorks spreadsheets. Although I have not verified this, I believe it will also seamlessly translate between ISO & serial time formats as needed for Excel imports & exports, using the first day of 1900 as needed.
Some other things to note about the ISO standard:
• It permits fractional time values in the smallest time unit present, so for example "T10:15:30" could be represented as "T10:15.5" but Numbers does not support this -- the cell will appear empty if the index file is manually edited this way.
• It does not stipulate whether date-time values represent intervals or durations (although it includes an explicit format for intervals between any two date-time values, known as a period). This means a future version of Numbers could support durations without the addition of a new data storage type, but legacy & import/export issues could make this too impractical to implement.
• It supports a variety of other formats, including date-only, time-only, day-of-year, week-of-year, & various truncations (just hours & minutes, for example). All are unambiguous so a future version of Numbers could support them, but files generated with those versions would not be backwards compatible with the current version.
For completeness, I will add that instead of using complex formulas to manipulate single-cell date-time values in Numbers, it is sometimes more straightforward to use multiple cells, one for each unit of time (for example, days, hours, minutes, & seconds), plus simple arithmetic formulas to combine them. Since each unit is a simple number, this results in highly portable, accurate, & "future-proof" tables, especially for durations. This is particularly useful for multimedia work in which the units might include video or film frames or audio samples.

Similar Messages

  • I want to know about time machine if i can use the hard drive that i use for time machine back up as a normal hard drive too or if it's only for time machine

    I want to know about time machine if i can use the hard drive that i use for time machine back up as a normal hard drive too or if it's only for time machine
    and if it yes i want to know if i have 1TB hard disk to use the 500gb for time machine and the other 500gb for normal use

    thank you very much because i am considering to buy the porsche design hard disk 1TB and i want to have it for normal use and for time machine is a pitty to give 1TB for back up only again thanks and i know seperate the back and the working jobs are better but the i have to have 2 hardisks and i want only 1

  • Everything you wanted to know about books... and then some.

    Hi, all:
    With all the questions and speculation about how books are printed, what color profile to use, etc. I contacted Apple and asked for information that I could pass on. Here's the reply I received from Apple:
    Thank you for contacting the Apple Print Products Customer Service.
    I understand that you would like to know the printing process that is used and the color mode the files should be in, so you can better advise users in the iPhoto forum.
    iPhoto version 4 or later, allows you to import and print files through the Apple Print Product service as RGB, grayscale, or CMYK color space. JPEG files with RGB color space are recommended for best results.
    While iPhoto 2 can import files of various formats, including RGB color, grayscale, and CMYK, this version requires JPEG files with RGB color space when printing photos and books.
    For more information regarding iPhoto 2, please visit the following article:
    iPhoto: Color, Black and White Prints Appear Garbled or Distorted
    For more information regarding iPhoto 5, please visit the following article:
    http://docs.info.apple.com/article.html?artnum=165501
    Here are some of the technical specifications for the books, cards, and calendars. I hope this gives you an idea about their quality and form.
    BOOKS
    All iPhoto books are printed using acid-free paper for long-lasting image quality. The photos are printed at a high resolution (300DPI if you use iPhoto 6). There is no external modification--such as sharpening or contrast adjustment--of the photos; what you see in the application is what is printed in the book.
    Hardcovers Books
    The cover is hard-bound and covered in linen. You select the linen color during the book-ordering process. The hardcover books have a solid, stiff binding that is glued and crimped. The internal pages, measuring 8.5 x 11 inches, are printed on McCoy 100# Text Gloss paper stock.
    Softcover Books
    The softcover books come in three sizes:
    - Large 8.5 x 11 inches
    - Medium 6 x 8 inches
    - Small 2.6 x 3.5 inches
    All of the softcover books have internal pages that are printed on McCoy 100# Text Gloss paper stock. The large softcover book has a white cover (Kromekoteplus Folding Cover, 16 point) with a cutout on the front that reveals the cover-page photo in the book. The covers for the medium and small softcover books have the cover image and title printed directly on the cover. All of the softcover books have a glued binding and feature a thick cover of McCoy 100# Cover Gloss paper stock.
    CARDS
    All cards are printed on McCoy 120# Silk Cover paper stock. The postcards measure 4 x 6 inches, and the greeting cards measure 5 x 7inches.
    CALENDARS
    All calendars measure 8 x 10 inches and are printed on McCoy 100# Silk Cover paper stock.
    To ensure the best print quality, we have chosen to use Kodak NexPress technology. The press uses a dry toner, which is fused to the surface of the paper. Please see NexPress' site for more information:
    KODAK NEXPRESS 2500 Digital Production Color Press
    I hope you find this information helpful in answering questions on the iPhoto forum. If you have any other questions, please reply to this email and we will help you further.
    Hope this will answer some of your questions more clearly.
    Do you Twango?
    G5 Dual Core 2GHz, 2G RAM, 250G HD; G4 Dual 1Ghz, 1.5G RAM, 80G HD, QT 7.1.3,   Mac OS X (10.4.8)   22 LCD, 250G/200G/160G FW HDs, Canon: SD700IS/i850/LIDE 50, Epson R200, 30G iPod

    Thanks, Toad. That was very informative. I don't really know anything about McCoy 100# Text Gloss paper stock, but I seem to have a small problem with it (or maybe the gloss/varnish on top, if there is any). I imagine I'm not the only one. My hardcover photo books have always come out beautiful. At home in Southern California, I can leave them on the coffee table without a problem usually. However, if I travel to humid areas of the East Coast with a book, or if it rains for several days here, the book paper will start to develop a wavy, wide corrugation around the edges that is very obvious when the book is viewed in profile. This does not seem to completely go away when the humidity goes back down. Other, "store bought" books around the house don't seem to do this. Have you seem or heard of this before? Thanks.
    --Scott

  • What you need to know about British Telecom Total ...

    I don't want to waste time on this forum. I've changed to Virgin - and thank God !
    Here's the text of the last letter I wrote to Customer Service Director, BT plc, Correspondence Centre, Durham, DH98 1BT.  I got the briefest of replies, which dealt with none of the points I raised.
    During April I was engaged in searching for a new flat. There were a number of possible candidates. I phoned British Telecom to ask about the service to the flat I favoured
    Your representative told me that I could expect up to 4 Mbs in this are. That was a lie
    The maximum possible speed is 2 Mbs. My IP Profile has typically been 1,2Mbs and currently you have restricted me to .9 Mbs and then to .78 Mbs
    Given that I was at the start of an 18 month contract with you, I would not have moved to this address had I been told – truthfully – by BT that this area is the worst in Cardiff for Internet access.
    In the same call your representative told me that there would be no problem providing a telephone service to 93 B because the line had very recently been in use and just needed to be switched on at the exchange That was a lie.
    Before moving in, I plugged a handset into the BT socket. There was no 'soft dial tone' which confirms that an inactive line is still connected to the exchange. I notified BT three times, but was assured – in a patronising manner – that then line had been tested and would be connected Friday 30th May. It wasn't of course.
    I notified BT by email. No reply on Saturday, nor the following days. On Tuesday an engineer called me. He told me my phone was working. I said it wasn't. He said he would check and ring me back within a half hour. He did not do so.
    It was not until the following Friday, that an engineer called and the problem was resolved. By that time I had spoken to the landlord and discovered that the BT line had not been in use for some time. Previous tenants had taken the Virgin Media telephone service. The flat had been decorated and the condition of the BT cabling inside the house could not be guaranteed.
    You have therefore deprived me of my telephone/internet service during the first week of May. You have not offered any compensation.
    I now raise a matter which may seem marginal, but which speaks volumes for the way British Telecom manage their business. The BT website offers a 'BT Community Forum'. I registered to use it because I wanted to document my experience for the benefit of other customers. The procedure ends with a message saying that an email with a clickable link will be sent, serving to verify the identity of the person registering. No such email was received. I tried again. No result. I notified BT. No reply.
    After perhaps six emails, a young woman phoned me. She wasted half an hour of my time establishing what I had already said in my emails. She said she would pass the matter on to technicians. No response – of course.
    It is evident that BT does not allow customers to register to use the BT community Forum, for fear that you will receive bad publicity. Given the shoddy manner in which you treat your customers, I imagine that bad publicity is inevitable. The Forum is a sham.
    I now come to the main issue – the provision of an Internet service. I wish once more to make it clear that it is not the slowness of this service that is the principal issue – it is the dishonesty of British Telecom personnel.
    I add that I am being advised by an independent expert who is an ex-BT manager with knowledge of the provision of digital services in Cardiff. You will understand that the press are always interested in 'whistle-blowers'
    If I had been honestly advised by BT that the area I was proposing to move to was poorly served by BT for digital services – and if I was experiencing the best speed that the line could offer me – about 1.5 Mbs real download speed – then I would consider myself bound by my contract with you. I would have moved to this area, knowing what performance I could expect.
    However, as I have outlined above, my decision to move here was largely based on a lie told to me by your representative on the phone – that I could expect up to 4Mbs
    In addition, the line speed has now been restricted to .78 Mbs. In my last letter I said that on the first occasion this 24 hour restriction was imposed I had complained and the peak time restriction was lifted. I had 1.2 Mbs off-peak, and .9 Mbs peak speeds.
    This continued to the end of May. On the 2nd June ther 24 hour restriction was reimposed.
    I have received an email from your customer service manager stating that this is simply because of 'long line length'. Very little technical knowledge is required to know that that statement is nonsense.
    My independent advisor tells me that in fact technicians constantly 'tune' speeds in bad areas. Obviously you try to get as many customers under contract as possible by lying to them about the speeds they will receive, then progressively reduce their line performance in order to accommodate other customers
    It is quite simply an outrage that BT should behave in this fashion, and nothing will please me more than having an opportunity to describe all of this in court.
    I estimate that the damages in time and stress you have caused me amount to one thousand pounds. I look forward to receiving your cheque for that amount.

    Hi sonsenfrancais,
    Welcome to the forum.
    I am sorry to hear you've now moved to another provider following some problems with the installation of your line and broadband speeds, if there's anything you'd like us to look into feel free to drop me an email at [email protected] with your BT account details.
    All the best,
    Stephanie
    Stephanie
    BTCare Community Manager
    If you like a post, or want to say thanks for a helpful answer, please click on the Ratings star on the left-hand side of the post. If someone answers your question correctly please let other members know by clicking on ’Mark as Accepted Solution’.

  • CRM Worklist: Everything you want to know about CRM workflows !

    Hello,
    I created a wiki page which gives all information about CRM worklist. It gives more insights on how CRM workflows are little different from workflows in another systems, how do we migrate CRM workflows to higher versions like CRM 6.0 and CRM 7.0, what are the functionality differences between CRM 5.0 and CRM 7.0 in terms of workflows and much more !!
    [CRM WebUI Worklist Wiki Page|http://wiki.sdn.sap.com/wiki/display/CRM/CRM7.0Worklist]
    Regards,
    Anand

    Thank you.)

  • Want to know about ERP''s (Sap)

    Hi,
    I would like to know totally about SAP and the modules sub modules and in and out of sap if you can also refer suitable url's and websites related to SAP will be appreciated.Satisfying answers will be rewarded.
    Thanks
    Prem

    Hi.
    I would like to know everything about India and the people living there and their thoughts. Please give me all the telephone books and websites about India you know.
    If that's seems like a not very specific question to you: that's exactly the type of question you asked. SAP's software is a little bit larger than you might think. There are tons of books just about specific aspects of this software. Browse through the SDN. Everything there is 'about SAP' but it is more than one single person can read.
    If you want to get 'the big picture': try wikipedia or some other web resources. If you are interested in specific topics: The SDN most likely is able to answer all of your question. But not in the way that the community tries to figure out what you want to know. You have to look around and find out what your specific question is. And if it has not been answered before you can feel free to ask it.
    Best regards,
    Jan Stallkamp

  • I want to know about ATP check requirement .generally we assigned yes or no while creating sales order

    I want to know about ATP check requirement .generally we assigned yes or no while creating sales order what it means when we give Yes or No. how pegging flows
    Regards
    virender

    Virender,
    Can you be a bit more specific about ".....generally we assigned yes or no while creating sales order....."   Exactly what field(s) did you 'assign'?  Screenshots would be helpful.
    With respect to pegging; in general, ATP has very little to do with pegging.  Pegging is more of a planning concept, and not an 'availability checking' concept.  There are a few exceptions in APO, but they are not commonly implemented.
    Can you elaborate about exactly what you want to know with respect to 'pegging' and ATP?
    Best Regards,
    DB49

  • Okay so I set up my Time Capsule already and is now backing up 2 of my iMacs. Works great. What I want to know is how to use the TC to directly store files? I want to do this to delete some files but still have them on the TC for future reference..

    Okay so I set up my Time Capsule already and is now backing up 2 of my iMacs. Works great. What I want to know is how to use the TC to directly store files? I want to do this to delete some files on iMac 20inch but still have them on the TC for future reference..eg some movies on iTunes. I want to directly save them on the drive so I can delete them from iTunes and gain some storage. (Ps on iMac 20 inch (it's almost full - 320 GB) when I enter time machine, a tab comes up on finder which reads "Time Machine backups" it's able to be ejected like a disc or a connected device. On the iMac 20 inch, I dragged some files onto there as if using it like a hard drive. Is this the correct method? Then I went to my 27inch iMac and saw the "Time Machine Backups" hoping to see the files I dragged from the 20inch iMac. But the files were not there except a folder that said "Backups.backupdb". Can someone help me?

    It's not a good idea to use a network disk for both Time Machine backups and other things.  By design Time Machine will eventually consume all the space on its output disk, which will then cause problem for your other files.  I'd store those other files on an external disk connected to the Time Capsule.  The problem with that is that Time Machine will only back up files that are local to your Mac.  That means that you'll only have one copy of the files on or attached to your Time Capsule.
    By the way, you've been misled by poor field labeling on this forum into typing a large part of your message into the field intended for the subject.  In the future just type a short summary of your post into that field and type the whole message into the field below that.

  • I want to know about wen the iphone 5 launch in india and also what will the price

    i want to know about wen the iphone 5 launch in india and also what will the price

    Anyone here knows or has access to the same info that you do or can access.
    If Apple has a website and online store in India, check Apple's website in India for an announcement.

  • I want to ask about changing perspective and perspective correction in photoshop. Obviously, we can tilt and straighten buildings and other monuments, which are leaning in any direction. Now, what I want to know is whether we can change perspective for hu

    I want to ask about changing perspective and perspective correction in photoshop. Obviously, we can tilt and straighten buildings and other monuments, which are leaning in any direction. Now, what I want to know is whether we can change perspective for human faces. For example, if there is a human face, where one part of the face is facing the camera and the other part of the face is only partially facing the camera, can we make this face look totally at the camera? I mean, look straight in front, and I am talking about the whole face here. I am attaching an image as an example of what I am talking about. @

    If you are wondering why you are not getting any responses, it is because you have vented a complaint without any details that make any sense or give anyone something to work on.
    If you want help, I suggest actually detailing what has happened, with versions of software etc. Anything that would let us assist.
    As a start I am guessing that you have not really got the hang of "How it all works". Firstly download the Pages09_UserGuide.pdf from under the Help menu. Read that and view the Video Tutorials in the same place. A good addition would be the iWork 09 Missing manual book and something to help you learn how to use your Mac.
    If there are specific tasks you need help with:
    http://www.freeforum101.com/iworktipsntrick/index.php?mforum=iworktipsntrick
    Is a good resource.
    Peter

  • Firefix sad:"Copy/Cut/Paste is not available in Mozilla and Firefox. Do you want more information about this issue?" But,I can do the that from Opera...What should I do?

    Copy/Cut/Paste is not available in Mozilla and Firefox.
    Do you want more information about this issue?
    That's what Firefox sad to me...I was Rich text editing,but I can
    not use copy paste on.
    I did the same site and Rich text editing with Opera,
    and there was no problem.
    I love Firefox,and I want ti use it,but if this is not posibile to do in Firefox,I must go with Opera from now on.
    Pleace,responde to me,I need to fix a problem.
    I hope you understanded my Engish!
    Thank you...

    Try to use the keyboard if the buttons on the web page aren't working.
    * Copy: Ctrl+C or Ctrl+Insert
    * Paste: Ctrl+V or Shift+Insert
    * Cut: Ctrl+X or Shift+Delete
    See:
    *http://kb.mozillazine.org/Granting_JavaScript_access_to_the_clipboard
    *https://addons.mozilla.org/firefox/addon/allowclipboard-helper/

  • What every developer should know about character encoding

    This was originally posted (with better formatting) at Moderator edit: link removed/what-every-developer-should-know-about-character-encoding.html. I'm posting because lots of people trip over this.
    If you write code that touches a text file, you probably need this.
    Lets start off with two key items
    1.Unicode does not solve this issue for us (yet).
    2.Every text file is encoded. There is no such thing as an unencoded file or a "general" encoding.
    And lets add a codacil to this – most Americans can get by without having to take this in to account – most of the time. Because the characters for the first 127 bytes in the vast majority of encoding schemes map to the same set of characters (more accurately called glyphs). And because we only use A-Z without any other characters, accents, etc. – we're good to go. But the second you use those same assumptions in an HTML or XML file that has characters outside the first 127 – then the trouble starts.
    The computer industry started with diskspace and memory at a premium. Anyone who suggested using 2 bytes for each character instead of one would have been laughed at. In fact we're lucky that the byte worked best as 8 bits or we might have had fewer than 256 bits for each character. There of course were numerous charactersets (or codepages) developed early on. But we ended up with most everyone using a standard set of codepages where the first 127 bytes were identical on all and the second were unique to each set. There were sets for America/Western Europe, Central Europe, Russia, etc.
    And then for Asia, because 256 characters were not enough, some of the range 128 – 255 had what was called DBCS (double byte character sets). For each value of a first byte (in these higher ranges), the second byte then identified one of 256 characters. This gave a total of 128 * 256 additional characters. It was a hack, but it kept memory use to a minimum. Chinese, Japanese, and Korean each have their own DBCS codepage.
    And for awhile this worked well. Operating systems, applications, etc. mostly were set to use a specified code page. But then the internet came along. A website in America using an XML file from Greece to display data to a user browsing in Russia, where each is entering data based on their country – that broke the paradigm.
    Fast forward to today. The two file formats where we can explain this the best, and where everyone trips over it, is HTML and XML. Every HTML and XML file can optionally have the character encoding set in it's header metadata. If it's not set, then most programs assume it is UTF-8, but that is not a standard and not universally followed. If the encoding is not specified and the program reading the file guess wrong – the file will be misread.
    Point 1 – Never treat specifying the encoding as optional when writing a file. Always write it to the file. Always. Even if you are willing to swear that the file will never have characters out of the range 1 – 127.
    Now lets' look at UTF-8 because as the standard and the way it works, it gets people into a lot of trouble. UTF-8 was popular for two reasons. First it matched the standard codepages for the first 127 characters and so most existing HTML and XML would match it. Second, it was designed to use as few bytes as possible which mattered a lot back when it was designed and many people were still using dial-up modems.
    UTF-8 borrowed from the DBCS designs from the Asian codepages. The first 128 bytes are all single byte representations of characters. Then for the next most common set, it uses a block in the second 128 bytes to be a double byte sequence giving us more characters. But wait, there's more. For the less common there's a first byte which leads to a sersies of second bytes. Those then each lead to a third byte and those three bytes define the character. This goes up to 6 byte sequences. Using the MBCS (multi-byte character set) you can write the equivilent of every unicode character. And assuming what you are writing is not a list of seldom used Chinese characters, do it in fewer bytes.
    But here is what everyone trips over – they have an HTML or XML file, it works fine, and they open it up in a text editor. They then add a character that in their text editor, using the codepage for their region, insert a character like ß and save the file. Of course it must be correct – their text editor shows it correctly. But feed it to any program that reads according to the encoding and that is now the first character fo a 2 byte sequence. You either get a different character or if the second byte is not a legal value for that first byte – an error.
    Point 2 – Always create HTML and XML in a program that writes it out correctly using the encode. If you must create with a text editor, then view the final file in a browser.
    Now, what about when the code you are writing will read or write a file? We are not talking binary/data files where you write it out in your own format, but files that are considered text files. Java, .NET, etc all have character encoders. The purpose of these encoders is to translate between a sequence of bytes (the file) and the characters they represent. Lets take what is actually a very difficlut example – your source code, be it C#, Java, etc. These are still by and large "plain old text files" with no encoding hints. So how do programs handle them? Many assume they use the local code page. Many others assume that all characters will be in the range 0 – 127 and will choke on anything else.
    Here's a key point about these text files – every program is still using an encoding. It may not be setting it in code, but by definition an encoding is being used.
    Point 3 – Always set the encoding when you read and write text files. Not just for HTML & XML, but even for files like source code. It's fine if you set it to use the default codepage, but set the encoding.
    Point 4 – Use the most complete encoder possible. You can write your own XML as a text file encoded for UTF-8. But if you write it using an XML encoder, then it will include the encoding in the meta data and you can't get it wrong. (it also adds the endian preamble to the file.)
    Ok, you're reading & writing files correctly but what about inside your code. What there? This is where it's easy – unicode. That's what those encoders created in the Java & .NET runtime are designed to do. You read in and get unicode. You write unicode and get an encoded file. That's why the char type is 16 bits and is a unique core type that is for characters. This you probably have right because languages today don't give you much choice in the matter.
    Point 5 – (For developers on languages that have been around awhile) – Always use unicode internally. In C++ this is called wide chars (or something similar). Don't get clever to save a couple of bytes, memory is cheap and you have more important things to do.
    Wrapping it up
    I think there are two key items to keep in mind here. First, make sure you are taking the encoding in to account on text files. Second, this is actually all very easy and straightforward. People rarely screw up how to use an encoding, it's when they ignore the issue that they get in to trouble.
    Edited by: Darryl Burke -- link removed

    DavidThi808 wrote:
    This was originally posted (with better formatting) at Moderator edit: link removed/what-every-developer-should-know-about-character-encoding.html. I'm posting because lots of people trip over this.
    If you write code that touches a text file, you probably need this.
    Lets start off with two key items
    1.Unicode does not solve this issue for us (yet).
    2.Every text file is encoded. There is no such thing as an unencoded file or a "general" encoding.
    And lets add a codacil to this – most Americans can get by without having to take this in to account – most of the time. Because the characters for the first 127 bytes in the vast majority of encoding schemes map to the same set of characters (more accurately called glyphs). And because we only use A-Z without any other characters, accents, etc. – we're good to go. But the second you use those same assumptions in an HTML or XML file that has characters outside the first 127 – then the trouble starts. Pretty sure most Americans do not use character sets that only have a range of 0-127. I don't think I have every used a desktop OS that did. I might have used some big iron boxes before that but at that time I wasn't even aware that character sets existed.
    They might only use that range but that is a different issue, especially since that range is exactly the same as the UTF8 character set anyways.
    >
    The computer industry started with diskspace and memory at a premium. Anyone who suggested using 2 bytes for each character instead of one would have been laughed at. In fact we're lucky that the byte worked best as 8 bits or we might have had fewer than 256 bits for each character. There of course were numerous charactersets (or codepages) developed early on. But we ended up with most everyone using a standard set of codepages where the first 127 bytes were identical on all and the second were unique to each set. There were sets for America/Western Europe, Central Europe, Russia, etc.
    And then for Asia, because 256 characters were not enough, some of the range 128 – 255 had what was called DBCS (double byte character sets). For each value of a first byte (in these higher ranges), the second byte then identified one of 256 characters. This gave a total of 128 * 256 additional characters. It was a hack, but it kept memory use to a minimum. Chinese, Japanese, and Korean each have their own DBCS codepage.
    And for awhile this worked well. Operating systems, applications, etc. mostly were set to use a specified code page. But then the internet came along. A website in America using an XML file from Greece to display data to a user browsing in Russia, where each is entering data based on their country – that broke the paradigm.
    The above is only true for small volume sets. If I am targeting a processing rate of 2000 txns/sec with a requirement to hold data active for seven years then a column with a size of 8 bytes is significantly different than one with 16 bytes.
    Fast forward to today. The two file formats where we can explain this the best, and where everyone trips over it, is HTML and XML. Every HTML and XML file can optionally have the character encoding set in it's header metadata. If it's not set, then most programs assume it is UTF-8, but that is not a standard and not universally followed. If the encoding is not specified and the program reading the file guess wrong – the file will be misread.
    The above is out of place. It would be best to address this as part of Point 1.
    Point 1 – Never treat specifying the encoding as optional when writing a file. Always write it to the file. Always. Even if you are willing to swear that the file will never have characters out of the range 1 – 127.
    Now lets' look at UTF-8 because as the standard and the way it works, it gets people into a lot of trouble. UTF-8 was popular for two reasons. First it matched the standard codepages for the first 127 characters and so most existing HTML and XML would match it. Second, it was designed to use as few bytes as possible which mattered a lot back when it was designed and many people were still using dial-up modems.
    UTF-8 borrowed from the DBCS designs from the Asian codepages. The first 128 bytes are all single byte representations of characters. Then for the next most common set, it uses a block in the second 128 bytes to be a double byte sequence giving us more characters. But wait, there's more. For the less common there's a first byte which leads to a sersies of second bytes. Those then each lead to a third byte and those three bytes define the character. This goes up to 6 byte sequences. Using the MBCS (multi-byte character set) you can write the equivilent of every unicode character. And assuming what you are writing is not a list of seldom used Chinese characters, do it in fewer bytes.
    The first part of that paragraph is odd. The first 128 characters of unicode, all unicode, is based on ASCII. The representational format of UTF8 is required to implement unicode, thus it must represent those characters. It uses the idiom supported by variable width encodings to do that.
    But here is what everyone trips over – they have an HTML or XML file, it works fine, and they open it up in a text editor. They then add a character that in their text editor, using the codepage for their region, insert a character like ß and save the file. Of course it must be correct – their text editor shows it correctly. But feed it to any program that reads according to the encoding and that is now the first character fo a 2 byte sequence. You either get a different character or if the second byte is not a legal value for that first byte – an error.
    Not sure what you are saying here. If a file is supposed to be in one encoding and you insert invalid characters into it then it invalid. End of story. It has nothing to do with html/xml.
    Point 2 – Always create HTML and XML in a program that writes it out correctly using the encode. If you must create with a text editor, then view the final file in a browser.
    The browser still needs to support the encoding.
    Now, what about when the code you are writing will read or write a file? We are not talking binary/data files where you write it out in your own format, but files that are considered text files. Java, .NET, etc all have character encoders. The purpose of these encoders is to translate between a sequence of bytes (the file) and the characters they represent. Lets take what is actually a very difficlut example – your source code, be it C#, Java, etc. These are still by and large "plain old text files" with no encoding hints. So how do programs handle them? Many assume they use the local code page. Many others assume that all characters will be in the range 0 – 127 and will choke on anything else.
    I know java files have a default encoding - the specification defines it. And I am certain C# does as well.
    Point 3 – Always set the encoding when you read and write text files. Not just for HTML & XML, but even for files like source code. It's fine if you set it to use the default codepage, but set the encoding.
    It is important to define it. Whether you set it is another matter.
    Point 4 – Use the most complete encoder possible. You can write your own XML as a text file encoded for UTF-8. But if you write it using an XML encoder, then it will include the encoding in the meta data and you can't get it wrong. (it also adds the endian preamble to the file.)
    Ok, you're reading & writing files correctly but what about inside your code. What there? This is where it's easy – unicode. That's what those encoders created in the Java & .NET runtime are designed to do. You read in and get unicode. You write unicode and get an encoded file. That's why the char type is 16 bits and is a unique core type that is for characters. This you probably have right because languages today don't give you much choice in the matter.
    Unicode character escapes are replaced prior to actual code compilation. Thus it is possible to create strings in java with escaped unicode characters which will fail to compile.
    Point 5 – (For developers on languages that have been around awhile) – Always use unicode internally. In C++ this is called wide chars (or something similar). Don't get clever to save a couple of bytes, memory is cheap and you have more important things to do.
    No. A developer should understand the problem domain represented by the requirements and the business and create solutions that appropriate to that. Thus there is absolutely no point for someone that is creating an inventory system for a stand alone store to craft a solution that supports multiple languages.
    And another example is with high volume systems moving/storing bytes is relevant. As such one must carefully consider each text element as to whether it is customer consumable or internally consumable. Saving bytes in such cases will impact the total load of the system. In such systems incremental savings impact operating costs and marketing advantage with speed.

  • Want to know about java importer

    hi,
    i m working on oracle forms 10g. i want to know about java importer utitlity and using it.
    plz provide me ant documentation about it , if i have it with example would be easy to understand
    thanks

    I think u r lookinghttp://www.catb.org/~esr/faqs/smart-questions.html#writewell
    How To Ask Questions The Smart Way
    Eric Steven Raymond
    Rick Moen
    Write in clear, grammatical, correctly-spelled language
    We've found by experience that people who are careless and sloppy writers are usually also careless and sloppy at thinking and coding (often enough to bet on, anyway). Answering questions for careless and sloppy thinkers is not rewarding; we'd rather spend our time elsewhere.
    So expressing your question clearly and well is important. If you can't be bothered to do that, we can't be bothered to pay attention. Spend the extra effort to polish your language. It doesn't have to be stiff or formal - in fact, hacker culture values informal, slangy and humorous language used with precision. But it has to be precise; there has to be some indication that you're thinking and paying attention.
    Spell, punctuate, and capitalize correctly. Don't confuse "its" with "it's", "loose" with "lose", or "discrete" with "discreet". Don't TYPE IN ALL CAPS; this is read as shouting and considered rude. (All-smalls is only slightly less annoying, as it's difficult to read. Alan Cox can get away with it, but you can't.)
    More generally, if you write like a semi-literate b o o b you will very likely be ignored. So don't use instant-messaging shortcuts. Spelling "you" as "u" makes you look like a semi-literate b o o b to save two entire keystrokes.

  • What you need to know before buying an antenna

    Isn’t it time you upgraded to an antenna? Wait… what? Upgrade to an antenna? Whether or not you’re a cord cutter (meaning you’ve cancelled your monthly television service) you might find that adding an antenna to your entertainment viewing space can be a great upgrade for a variety of reasons. Whatever those reasons are, here’s what you need to know before buying an antenna.
     

    I don't set out to sell anything, I'm an independent writer tasked with writing stuff about things to inform people. We link stuff to help people find things if they want to buy them, but the above isn't a sales pitch, it's info to help people figure out if they want or need something. 
    I didn't know that there was a cabal of antenna dealers who have been promulgating a myth (as a writer: nicely done there) about the nature of NTSC and ATSC; I hadn't ever considered that the antenna market was that large. When I received the request to write an article about antennas I was actually surprised; antennas don't have the support of major telecommunications companies and I sincerely doubt that there's going to be a run on them because of this article. I saw this as a bit of a public service opportunity to talk about a technology that a small segment would be interested in. 
    Anyway, I'm not sure we're going to get much farther on this; yes Best Buy sells antennas, but no, they didn't ask for an ad. They asked for an article that focused on how these antennas work and what to look for. Thank you for adding your insight about ATSC - I think that was actually covered in paragraphy three, but it's nice to see it spelled out more directly.
    Have a nice day - and if you'd like to discuss this directly, please send me a DM on twitter @thetechnogram

  • Everything you need to know about Foxtel Go

    Foxtel on T-Box customers can self register Foxtel Go on 2 devices per Foxtel on T-Box subscription. You are able to view content on 1 of the 2 registered devices. The T-Box device will automatically be registered on your behalf and cannot be deregistered. You can change the device they have registered once per calendar month.
    To change a registered device you must log into the Foxtel Go app. As a Foxtel from Telstra customer please use your Foxtel My account details. As a Foxtel on T-Box customer please log in with your primary (i.e. the first username created and linked to your account) BigPond username and password.
    Once in the app go to the settings icon and choose 'manage my devices'. Within this section of the app you will be able to select de-register for the device you wish to change. To register, download the Foxtel Go app and log in. You will be prompted to register the device.
    Remember you can only change one device once per calendar month. If you are still able to make a change, you will be advised of the number of device registrations left this month.
    If you recently registered your T-Box, you should have access to Foxtel Go within 1 hour. If you are experiencing errors please try closing the Foxtel Go App and logging in again. If you are still unable to access any content please contact us via Telstra 24x7 or Telstra Technical Support on 13 22 00
    If you swap your Foxtel on T-Box service to a new device, your Foxtel Go service is not affected as it is associated to your BigPond username and password, and not the T-Box device.
    When trying to make a second device change within a month the de-register' button will be greyed out, preventing the change.
    Current channel rights only allow Foxtel Go to be registered on 3 devices per Foxtel Account. For Foxtel on T-Box customers, the T-Box counts as your 3rd device.
    The parental control function is specific to Foxtel Go and managed in the app via the settings icon. To access parental control:
    Go to the settings' icon in the app (top right)
    Access parental controls'
    Choose which classifications you'd like to restrict
    All R-rated content is automatically blocked, but you can personalise your restrictions for other ratings. To do this go to Settings in the Foxtel Go app, turn on Parental Controls and restrict the classifications you would like to block. If this is the first time you do this you'll be prompted to set a 4 digit PIN specifically for Foxtel Go. You can use this PIN to change your parental controls in the future. This PIN is only applicable to the Foxtel Go app. For Foxtel from Telstra customers, the PIN is not the same as you use on your IQ or Set Top Box, and you will be required to setup a new PIN to restrict content on Foxtel Go. For Foxtel on T-Box customers, the PIN is not the same as you use on your T-Box, and you will be required to setup a new PIN to restrict content on Foxtel Go.
    Foxtel Go content is unmetered with Telstra BigPond Home Broadband services. With other internet service providers this will be offset against your data plan.
    If you use Foxtel Go on your device with any 3G/4G telecommunications service provider, including Telstra, usage isn't unmetered and you will incur data charges when using Foxtel Go. The below list provides an indicationof the data you will use per device on the various app settings, based on watching an hour of TV. To view your settings go to the 'settings' icon in the Foxtel Go App, turn on 'video settings' and choose your preferred quality:
    3G Phone/Tablet Best: 320 MB per hour / Low: 170 MB per hour
    Wi-Fi Phone Best: 420 MB per hour / Low: 320 MB per hour
    Wi-Fi Tablet Best: 720 MB per hour / Low: 320 MB per hour
    Wi-Fi PC/Mac Best: 1310 MB per hour / Low: 470 MB per hour
    The size of each episode or Movie on Catch up TV can be found on the Synopsis tab.
    You can use Foxtel Go at a Wi-Fi location or a personal hotspot when you are in Australia provided you have an internet connection. Some locations offer Wi-Fi hotspots where you can log onto the internet for free. e.g. McDonalds, Starbucks, etc. Any data charges incurred are charged to the business and not to you. When connected to Wi-Fi, you'll see a Wi-Fi symbol on your device.
    Foxtel from Telstra customers with a Foxtel iQ or iQHD set top box can Remote Record and send a channel change to their set top box. Unfortunately this functionality is not available to Foxtel on T-Box customers.
    You can pause and rewind the last 30 minutes of Live TV, even if you've just changed to that channel. Due to device restrictions users of Samsung Android devices are unable to use this feature.
    Foxtel Go is a streaming video service. Streaming means that images and sound are delivered live to your device to view when you press Play, rather than being downloaded to your device to view at a later time.
    Games you'd normally see on Foxtel from Telstra or Foxtel on T-Box on FOX SPORTS 3 are broadcast on Foxtel Go on the Footy Play Plus channel
    There are no Catch Up of AFL games or magazine shows on Foxtel Go due to content restrictions.
    The key symbol indicates that a channel isn't part of your package. You need to upgrade your Foxtel from Telstra or Foxtel on T-Box package to watch it. Your package can not be updated through the Foxtel Go app. For Foxtel on T-Box customers you can update your packages in the T-Box App, at www.telstra.com/tboxsetup, via 13 2200 or in store. For Foxtel from Telstra customers you can update your packages through the store or via 13 1999. The lock symbol indicates that, as part of your parental control setting, you've locked this classification of content, and can't watch it. If you want to change the settings then the primary (i.e. the first username created and linked to your account) account holder can change these by:
    Go to the settings' icon in the app (top right)
    Access parental controls'
    Choose which classifications you'd like to restrict
    No other username or password can change the parental control settings.
    We may be required to block out specific programming from time to time, e.g. if a channel doesn't have the legal right to broadcast the programme over the internet. However, all live channels are the same as channels you watch through Foxtel from Telstra or Foxtel on T-Box.
    The vast majority of the Foxtel on T-Box content is available via Foxtel Go. There are some minor exceptions. MTV Music and MTV Dance channels are not available. FOOTY PLAY and FOOTY PLAY+ (overflow) channels are not available on PC and Mac only.
    Access to Foxtel Go is included in your Foxtel on T-Box and Foxtel from Telstra subscription. However, you will incur data charges when accessing the service on a 3G/4G network.

    Re: Everything you need to know about Foxtel Go
    Iam book in to have foxtel install on 2nd of March was offered Thursday the 28 my appointment has been cancelled so can be home Thursday I put a complaint in as was told it was 1hour for change over from T Box but no one has got back to me

Maybe you are looking for

  • 57F4 Chalan is not coming in MIGO Header

    Dear Friend, When I am doing MIGO for a job work PO, In the Header data,  Excise invoice tab page, the option for 57F4 chalan is not coming! The material does not have a master record and and account assignment category is K. The material group is J0

  • Can I copy a catalog format to the other files in the book?

    Hi everyone, Yet another question from a newbie, FM 10 Windows 7.  I finally figured out how to filter the paragraph catalog so it opens with only the styles I want, in the order I want.  I was very pleased until I noticed that this catalog didn't ca

  • Dynamic Search Helps In An Input Field

    Hi Experts,           I need to populate an input field with different search helps based on the user action i.e when user selects "Audit"  i hav to show the audit search help for my input field, when he selects  "Audit Plan" i would hav to show audi

  • Oracle 9i (SE) Solaris 9 (Trace Files)

    Hi Guys, Is it wise to delete the trace files and where are they located. I've got space issues so I need to cleanup. Thank you.

  • Error Message when adding Expired Bidder

    Good Day Experts! I would like to know if there is a way to restrict adding of expired contact persons in an RFx. Thank you!