[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
PSPP-BUG: [bug #30708] DATESUM, DATEDIFF clarifications
From: |
Ben Pfaff |
Subject: |
PSPP-BUG: [bug #30708] DATESUM, DATEDIFF clarifications |
Date: |
Sun, 08 Aug 2010 23:11:18 +0000 |
User-agent: |
Mozilla/5.0 (X11; U; Linux i686 (x86_64); en-US; rv:1.9.1.10) Gecko/20100623 Iceweasel/3.5.10 (like Firefox/3.5.10) |
URL:
<http://savannah.gnu.org/bugs/?30708>
Summary: DATESUM, DATEDIFF clarifications
Project: PSPP
Submitted by: blp
Submitted on: Sun Aug 8 16:11:18 2010
Category: Numerical Errors
Severity: 5 - Average
Status: None
Assigned to: None
Open/Closed: Open
Discussion Lock: Any
Release: None
Effort: 0.00
_______________________________________________________
Details:
From: "Daniel E WILLIAMS" <address@hidden>
> The time of day appears to count for DATEDIFF. The difference in years
> between 1 Jan 2004
> at 2pm and 1 Jan 2005 at 1pm equals zero, while the difference in years
> between 1 Jan 2004
> at 2pm and 1 Jan 2005 at 3pm equals one.
>
> Time of day also appears to count for DATESUM. 1 Feb at 14:00, with one
month
> added, becomes 1 Mar at 14:00. The code I sent tries three different
versions
> of DATESUM; the default, "rollover", and "closest" methods. I cannot
figure
> out what the difference between "rollover" and "closest", but I know that
> "closest" is the default.
>
> You are right. The SPSS documentation is not very clear on this issue.
I've
> attached code and an output file that shows the calculations I made.
Thanks.
_______________________________________________________
File Attachments:
-------------------------------------------------------
Date: Sun Aug 8 16:11:18 2010 Name: date_stuff_for_SPSS.SPS Size: 1kB
By: blp
<http://savannah.gnu.org/bugs/download.php?file_id=21172>
-------------------------------------------------------
Date: Sun Aug 8 16:11:18 2010 Name: date_stuff_for_SPSS.sav Size: 871B
By: blp
<http://savannah.gnu.org/bugs/download.php?file_id=21173>
_______________________________________________________
Reply to this item at:
<http://savannah.gnu.org/bugs/?30708>
_______________________________________________
Message sent via/by Savannah
http://savannah.gnu.org/
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- PSPP-BUG: [bug #30708] DATESUM, DATEDIFF clarifications,
Ben Pfaff <=