comp.lang.ada
 help / color / mirror / Atom feed
From: "Jeffrey R. Carter" <spam.jrcarter.not@spam.not.acm.org>
Subject: Re: Time_Zone-aware Day_of_Week ?
Date: Mon, 13 Jul 2015 09:45:44 -0700
Date: 2015-07-13T09:45:44-07:00	[thread overview]
Message-ID: <mo0pt1$c8n$1@dont-email.me> (raw)
In-Reply-To: <slrnmq7f6j.1ga.lithiumcat@nat.rebma.instinctive.eu>

On 07/13/2015 06:26 AM, Natasha Kerensikova wrote:
> 
> Moreover, the description in the ARM of the function is quite terse:
> "Returns the day of the week for Time. This is based on the Year, Month,
> and Day values of Time."

Presumably the Year, Month, and Day returned by Ada.Calendar.Split.

> However, all of Year, Month and Day functions do have the Time_Zone
> argument that Day_of_Week lacks. So which time offset is Day_of_Week
> supposed to use?

I'd guess the time offset given by Ada.Calendar.Time_Zones.UTC_Time_Offset.

PragmARC.Date_Handler.Day_Of_Week gives you the day of week of any Year, Month,
and Day CE you care to give it, even for values of Year outside
Ada.Calendar.Year_Number. It can also give you the day of week for any
Ada.Calendar.Time, using the Year, Month, and Day returned by Ada.Calendar.Split.

The PragmAda Reusable Components are at

https://pragmada.x10hosting.com/pragmarc.htm

-- 
Jeff Carter
"He that hath no beard is less than a man."
Much Ado About Nothing
132

  reply	other threads:[~2015-07-13 16:45 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-07-13 13:26 Time_Zone-aware Day_of_Week ? Natasha Kerensikova
2015-07-13 16:45 ` Jeffrey R. Carter [this message]
2015-07-16 17:07   ` brbarkstrom
2015-07-17  5:12 ` Vadim Godunko
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox