Talk:Date manipulation: Difference between revisions

Suggest a name change.
(Suggest a name change.)
 
(8 intermediate revisions by 5 users not shown)
Line 1:
==Task is not atomic==
This task mixes two entirely different things: date format, date computation.
Is that intended?
(This issue is touched further down.)
[[User:Marius|Marius]] 09:34, 13 February 2012 (UTC)
 
Actually, this task is mislabeled: it is called "Date manipulation", but should be called "DateTime manipulation", or perhaps "Time manipulation", especially since the task says to provide an offset in _hours_, components that exist only in a DateTime or Time value.
 
==Task is Region specific==
I live in the UK and tried the Tcl example:
Line 41 ⟶ 49:
 
Maybe the task should be changed so the example time given is in terms of a base string plus some indication of your local timezone, such as that given, for EST. If the fact that the calculation should include a change in daylight saving time, then that should be added to the task description too. --[[User:Paddy3118|Paddy3118]] 12:42, 14 May 2009 (UTC)
 
: I would like to modify the task so you can initialize the date in the most natural way for the language, not via timestamp string parsing. (Date parsing is already presented in some of the data munging tasks.) For example, Java would use a Date or Calendar constructor. Hopefully, that would eliminate the timezone confusion and make the task more language inclusive. --[[User:IanOsgood|IanOsgood]] 14:51, 26 June 2009 (UTC)
::I don't understand why there's confusion. It doesn't say to print in any particular timezone and receiving a date stamp with a timezone is fairly common. The important part of the task is that the time is 12 hours later no matter what timezone it is. --[[User:Mwn3d|Mwn3d]] 18:35, 26 June 2009 (UTC)
:::The confusion is in the task it self, that mixes two entirely different things, formatting and computation.[[User:Marius|Marius]] 09:34, 13 February 2012 (UTC)
 
== Rexx solution ==
 
should be moved to category ooRexx! May I do that? --[[User:Walterpachl|Walterpachl]] 07:50, 4 August 2012 (UTC)
 
:Hmmm, there is already an ooRexx solution in that Category.
:Who are the authors?
:And what's the point of isTrue and isFalse??
:I suggest these changes:
<pre>
DEL-> -- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
DEL-> isTrue: Procedure; Return (1 == 1)
DEL->
DEL-> -- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
DEL-> isFalse: Procedure; Return \isTrue()
DEL->
DEL-> -- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
 
OLD-> !reading = isFalse()
NEW-> !reading = 0
 
OLD-> !reading = isFalse()
NEW-> !reading = 0
 
OLD-> !reading = isTrue()
NEW-> !reading = 1
</pre>
--[[User:Walterpachl|Walterpachl]] 07:53, 5 August 2012 (UTC)
Anonymous user