On Tue, May 06, 2008 at 03:04:57PM -0700, Dick Moores wrote:
> I just found your reply in my Tutor mailbox, at the HEAD of the
> thread I started. By my time (U.S. PDT), you answered my 07:11 AM
> 5/6/2008 post at 04:55 PM 5/5/2008!
Yeah, sorry about that. The clock on my system was off.
Fixed
At 05:41 PM 5/6/2008, Kent Johnson wrote:
On Tue, May 6, 2008 at 5:41 PM, Dick Moores <[EMAIL PROTECTED]> wrote:
>
> The function is now:
>
>
> def printResult(date1, date2, days1, weeks, days2):
> print "\nThe difference between %s and %s is %d days" %
(date1.strftime("%m/%d/%Y"),
>
At 05:41 PM 5/6/2008, Kent Johnson wrote:
On Tue, May 6, 2008 at 5:41 PM, Dick Moores <[EMAIL PROTECTED]> wrote:
>
> The function is now:
>
>
> def printResult(date1, date2, days1, weeks, days2):
> print "\nThe difference between %s and %s is %d days" %
(date1.strftime("%m/%d/%Y"),
>
On Tue, May 6, 2008 at 5:41 PM, Dick Moores <[EMAIL PROTECTED]> wrote:
>
> The function is now:
>
>
> def printResult(date1, date2, days1, weeks, days2):
> print "\nThe difference between %s and %s is %d days" %
> (date1.strftime("%m/%d/%Y"),
> date2.strftime("%m/%d/%Y"), days1)
>
At 04:55 PM 5/5/2008, Steve Willoughby wrote:
On Tue, May 6, 2008 11:35, Dick Moores wrote:
> Could someone just come right out and do it for me? I'm lost here.
> That '*' is just too magical.. Where did you guys learn about
> '%*s'? Does the '%s' still mean a string?
Python's % operator (for
At 12:09 PM 5/6/2008, Kent Johnson wrote:
On Tue, May 6, 2008 at 2:35 PM,
Dick Moores <[EMAIL PROTECTED]> wrote:
> I'm lost here. That '*'
> is just too magical.. Where did you guys learn about
'%*s'?
http://docs.python.org/lib/typesseq-strings.html
Item 4 - Minimum field width
> Does the '%s'
On Tue, May 6, 2008 at 2:35 PM, Dick Moores <[EMAIL PROTECTED]> wrote:
> I'm lost here. That '*'
> is just too magical.. Where did you guys learn about '%*s'?
http://docs.python.org/lib/typesseq-strings.html
Item 4 - Minimum field width
> Does the '%s'
> still mean a string?
Yes.
Kent
___
On Tue, May 6, 2008 11:35, Dick Moores wrote:
> Could someone just come right out and do it for me? I'm lost here.
> That '*' is just too magical.. Where did you guys learn about
> '%*s'? Does the '%s' still mean a string?
Python's % operator (for string formatting) is derived from the C standar
At 09:54 AM 5/6/2008, W W wrote:
On Tue, May 6, 2008 at 11:40 AM,
Dick Moores <[EMAIL PROTECTED]> wrote:
>
>
>
>
> At 09:07 AM 5/6/2008, Kent Johnson wrote:
>
> You can right-justify in a format operation. You will have to do it
in
> two steps since the string you want to right-justify is itself
On Tue, May 6, 2008 at 11:40 AM, Dick Moores <[EMAIL PROTECTED]> wrote:
>
>
>
>
> At 09:07 AM 5/6/2008, Kent Johnson wrote:
>
> You can right-justify in a format operation. You will have to do it in
> two steps since the string you want to right-justify is itself the
> result of a format operation:
At 09:07 AM 5/6/2008, Kent Johnson wrote:
On Tue, May 6, 2008 at 10:11 AM,
Dick Moores <[EMAIL PROTECTED]> wrote:
>
> This script of mine, <
http://py77.python.pastebin.com/f2fdcb99c>, has a function that
prints the result--the difference in days, and weeks and days, between
two dates.
>
> The f
On Tue, May 6, 2008 at 10:11 AM, Dick Moores <[EMAIL PROTECTED]> wrote:
>
> This script of mine, < http://py77.python.pastebin.com/f2fdcb99c>, has a
> function that prints the result--the difference in days, and weeks and days,
> between two dates.
>
> The function is
>
> def printResult(date1,
This script of mine,
<
http://py77.python.pastebin.com/f2fdcb99c>, has a function that
prints the result--the difference in days, and weeks and days, between
two dates.
The function is
def printResult(date1, date2, days1, weeks, days2):
print "\nThe difference between %s and %s is %d
days"
13 matches
Mail list logo