Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.soft-sys.math.mathematica > #9794 > unrolled thread

Re: Question about DayOfWeek

Started byJames Stein <mathgroup@stein.org>
First post2012-04-25 04:42 +0000
Last post2012-04-25 04:42 +0000
Articles 1 — 1 participant

Back to article view | Back to comp.soft-sys.math.mathematica

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

  Re: Question about DayOfWeek James Stein <mathgroup@stein.org> - 2012-04-25 04:42 +0000

#9794 — Re: Question about DayOfWeek

FromJames Stein <mathgroup@stein.org>
Date2012-04-25 04:42 +0000
SubjectRe: Question about DayOfWeek
Message-ID<jn7vb1$6h3$1@smc.vnet.net>
Roughly speaking, "==" only compares things that are comparable.
In cases like these, use "===" which demands "sameness" on both sides.
I make this mistake often -- not a typo, but a thinko.

On Tue, Apr 24, 2012 at 2:34 AM, Kent Holing <KHO@statoil.com> wrote:
> DayOfWeek[{1975,1,1}]==Wednesday gives True (as it should), but DayOfWeek[{1975,1,1}]==Thursday gives
> Wednesday == Thursday and not False, as it should? Why is it so?
>

[toc] | [standalone]


Back to top | Article view | comp.soft-sys.math.mathematica


csiph-web