Re: [iText-questions] iText in Action 2ED, part1.chapter03.MovieTimeBlocks.java
Keith O wrote: > Ugh, sorry about that. All the Java programmers on the list were > probably thinking "ah, silly .NET programmer" ;-) No, I had to check myself. The original example was written years ago (because I use that application to visit a real film festival: http://filmfestival.be/ ). Then I remembered that dates and time in Java are... strange. For instance: the index for the month of January is 0 instead of 1. -- Download Intel® Parallel Studio Eval Try the new software tools for yourself. Speed compiling, find bugs proactively, and fine-tune applications for parallel performance. See why Intel Parallel Studio got high marks during beta. http://p.sf.net/sfu/intel-sw-dev ___ iText-questions mailing list iText-questions@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/itext-questions Buy the iText book: http://www.1t3xt.com/docs/book.php Check the site with examples before you ask questions: http://www.1t3xt.info/examples/ You can also search the keywords list: http://1t3xt.info/tutorials/keywords/
Re: [iText-questions] iText in Action 2ED, part1.chapter03.MovieTimeBlocks.java
> Date: Wed, 24 Mar 2010 08:30:56 +0100 > From: br...@lowagie.com > To: itext-questions@lists.sourceforge.net > Subject: Re: [iText-questions] iText in Action 2ED, > part1.chapter03.MovieTimeBlocks.java > > Keith O wrote: > > Hi Bruno, > > > > Maybe this: > > > > public static long TIME930 = 3060L; // 0830 > > > > Should be this: > > > > public static long TIME930 = 3420L; // 0930 > > The funny thing is that 9:30 is 3060l in Java. > Time starts at 1AM in Java (which is confusing). Ugh, sorry about that. All the Java programmers on the list were probably thinking "ah, silly .NET programmer" ;-) Saw the value and assumed it was an offset of Unix time. And it's a good thing you named the variable that way, or it would have taken me a lot longer to figure out why the blocks were running off the time table :) _ Hotmail: Trusted email with powerful SPAM protection. http://clk.atdmt.com/GBL/go/210850553/direct/01/-- Download Intel® Parallel Studio Eval Try the new software tools for yourself. Speed compiling, find bugs proactively, and fine-tune applications for parallel performance. See why Intel Parallel Studio got high marks during beta. http://p.sf.net/sfu/intel-sw-dev___ iText-questions mailing list iText-questions@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/itext-questions Buy the iText book: http://www.1t3xt.com/docs/book.php Check the site with examples before you ask questions: http://www.1t3xt.info/examples/ You can also search the keywords list: http://1t3xt.info/tutorials/keywords/
Re: [iText-questions] iText in Action 2ED, part1.chapter03.MovieTimeBlocks.java
Keith O wrote: > Hi Bruno, > > Maybe this: > > public static long TIME930 = 3060L; // 0830 > > Should be this: > > public static long TIME930 = 3420L; // 0930 The funny thing is that 9:30 is 3060l in Java. Time starts at 1AM in Java (which is confusing). -- Download Intel® Parallel Studio Eval Try the new software tools for yourself. Speed compiling, find bugs proactively, and fine-tune applications for parallel performance. See why Intel Parallel Studio got high marks during beta. http://p.sf.net/sfu/intel-sw-dev ___ iText-questions mailing list iText-questions@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/itext-questions Buy the iText book: http://www.1t3xt.com/docs/book.php Check the site with examples before you ask questions: http://www.1t3xt.info/examples/ You can also search the keywords list: http://1t3xt.info/tutorials/keywords/