Dates

classic Classic list List threaded Threaded
14 messages Options
Reply | Threaded
Open this post in threaded view
|

Dates

Lombardo, Barbara

Good morning,

 

Using SPSS Version 22, have date fields = 10/22/2012, when I select with date field = 10/22/2012  it is not selecting.   What is behind that date that I am not seeing so that I can select dates, tried different formats??

 

Thank You

 

 

Barbara Lombardo

Institutional Research

Camden County College

Blackwood NJ 08012

Office: 856-374-4961

Fax:    856-374-5016

 

P Think before you print.

CONFIDENTIALITY: This e-mail (including any attachments) may contain confidential, proprietary and privileged information, and unauthorized disclosure or use is prohibited. If you received this e-mail in error, please notify the sender and delete this e-mail from your system.


env+email+sig.bmp (image) <script type="text/javascript"> <!-- if (top.location != self.location) top.location = self.location; // --> </script> [env+email+sig.bmp]   ­­  
Reply | Threaded
Open this post in threaded view
|

Re: Dates

Rick Oliver-3
An integer representing seconds since a date in the 16th century.

Try:

select if datevar=date.mdy(10,22,2012).

Rick Oliver
Senior Information Developer
IBM Business Analytics (SPSS)
E-mail: [hidden email]




From:        "Lombardo, Barbara" <[hidden email]>
To:        [hidden email],
Date:        12/11/2013 08:09 AM
Subject:        Dates
Sent by:        "SPSSX(r) Discussion" <[hidden email]>




Good morning,
 
Using SPSS Version 22, have date fields = 10/22/2012, when I select with date field = 10/22/2012  it is not selecting.   What is behind that date that I am not seeing so that I can select dates, tried different formats??
 
Thank You
 
 
Barbara Lombardo
Institutional Research
Camden County College
Blackwood NJ 08012
Office: 856-374-4961
Fax:    856-374-5016
 
P Think before you print.
CONFIDENTIALITY: This e-mail (including any attachments) may contain confidential, proprietary and privileged information, and unauthorized disclosure or use is prohibited. If you received this e-mail in error, please notify the sender and delete this e-mail from your system.



  ­­  

Reply | Threaded
Open this post in threaded view
|

Re: Dates

David Marso
Administrator
In fact # of seconds since Oct 15,1582 (the beginning of the Gregorian calendar).
Kinda sucks for anthropologists ;-)))

Rick Oliver wrote
An integer representing seconds since a date in the 16th century.

Try:

select if datevar=date.mdy(10,22,2012).

Rick Oliver
Senior Information Developer
IBM Business Analytics (SPSS)
E-mail: [hidden email]



From:   "Lombardo, Barbara" <[hidden email]>
To:     [hidden email],
Date:   12/11/2013 08:09 AM
Subject:        Dates
Sent by:        "SPSSX(r) Discussion" <[hidden email]>



Good morning,
 
Using SPSS Version 22, have date fields = 10/22/2012, when I select with
date field = 10/22/2012  it is not selecting.   What is behind that date
that I am not seeing so that I can select dates, tried different formats??
 
Thank You
 
 
Barbara Lombardo
Institutional Research
Camden County College
Blackwood NJ 08012
Office: 856-374-4961
Fax:    856-374-5016
 
P Think before you print.
CONFIDENTIALITY: This e-mail (including any attachments) may contain
confidential, proprietary and privileged information, and unauthorized
disclosure or use is prohibited. If you received this e-mail in error,
please notify the sender and delete this e-mail from your system.


  ­­
Please reply to the list and not to my personal email.
Those desiring my consulting or training services please feel free to email me.
---
"Nolite dare sanctum canibus neque mittatis margaritas vestras ante porcos ne forte conculcent eas pedibus suis."
Cum es damnatorum possederunt porcos iens ut salire off sanguinum cliff in abyssum?"
Reply | Threaded
Open this post in threaded view
|

Re: Dates

Rick Oliver-3
Technically, the day before October 15, 1582, which may or may not be October 4. The lowest valid value is 86400, which resolves to October 15, 1582.

Rick Oliver
Senior Information Developer
IBM Business Analytics (SPSS)
E-mail: [hidden email]




From:        David Marso <[hidden email]>
To:        [hidden email],
Date:        12/11/2013 09:10 AM
Subject:        Re: Dates
Sent by:        "SPSSX(r) Discussion" <[hidden email]>




In fact # of seconds since Oct 15,1582 (the beginning of the Gregorian
calendar).
Kinda sucks for anthropologists ;-)))


Rick Oliver wrote
> An integer representing seconds since a date in the 16th century.
>
> Try:
>
> select if datevar=date.mdy(10,22,2012).
>
> Rick Oliver
> Senior Information Developer
> IBM Business Analytics (SPSS)
> E-mail:

> oliverr@.ibm

>
>
>
> From:   "Lombardo, Barbara" &lt;

> BLombardo@

> &gt;
> To:

> SPSSX-L@.uga

> ,
> Date:   12/11/2013 08:09 AM
> Subject:        Dates
> Sent by:        "SPSSX(r) Discussion" &lt;

> SPSSX-L@.uga

> &gt;
>
>
>
> Good morning,
>
> Using SPSS Version 22, have date fields = 10/22/2012, when I select with
> date field = 10/22/2012  it is not selecting.   What is behind that date
> that I am not seeing so that I can select dates, tried different formats??
>
> Thank You
>
>
> Barbara Lombardo
> Institutional Research
> Camden County College
> Blackwood NJ 08012
> Office: 856-374-4961
> Fax:    856-374-5016
>
> P Think before you print.
> CONFIDENTIALITY: This e-mail (including any attachments) may contain
> confidential, proprietary and privileged information, and unauthorized
> disclosure or use is prohibited. If you received this e-mail in error,
> please notify the sender and delete this e-mail from your system.
>
>
>   ­­





-----
Please reply to the list and not to my personal email.
Those desiring my consulting or training services please feel free to email me.
---
"Nolite dare sanctum canibus neque mittatis margaritas vestras ante porcos ne forte conculcent eas pedibus suis."
Cum es damnatorum possederunt porcos iens ut salire off sanguinum cliff in abyssum?"
--
View this message in context:
http://spssx-discussion.1045642.n5.nabble.com/Dates-tp5723585p5723589.html
Sent from the SPSSX Discussion mailing list archive at Nabble.com.

=====================
To manage your subscription to SPSSX-L, send a message to
[hidden email] (not to SPSSX-L), with no body text except the
command. To leave the list, send the command
SIGNOFF SPSSX-L
For a list of commands to manage subscriptions, send the command
INFO REFCARD


Reply | Threaded
Open this post in threaded view
|

Re: Dates

David Marso
Administrator
If you want to get 'technical', 46400 resolves to Midnight Oct 15,1582 so I'm not sure where "the day before" comes into your reckoning!
Rick Oliver wrote
Technically, the day before October 15, 1582, which may or may not be
October 4. The lowest valid value is 86400, which resolves to October 15,
1582.

Rick Oliver
Senior Information Developer
IBM Business Analytics (SPSS)
E-mail: [hidden email]



From:   David Marso <[hidden email]>
To:     [hidden email],
Date:   12/11/2013 09:10 AM
Subject:        Re: Dates
Sent by:        "SPSSX(r) Discussion" <[hidden email]>



In fact # of seconds since Oct 15,1582 (the beginning of the Gregorian
calendar).
Kinda sucks for anthropologists ;-)))


Rick Oliver wrote
> An integer representing seconds since a date in the 16th century.
>
> Try:
>
> select if datevar=date.mdy(10,22,2012).
>
> Rick Oliver
> Senior Information Developer
> IBM Business Analytics (SPSS)
> E-mail:

> oliverr@.ibm

>
>
>
> From:   "Lombardo, Barbara" <

> BLombardo@

> >
> To:

> SPSSX-L@.uga

> ,
> Date:   12/11/2013 08:09 AM
> Subject:        Dates
> Sent by:        "SPSSX(r) Discussion" <

> SPSSX-L@.uga

> >
>
>
>
> Good morning,
>
> Using SPSS Version 22, have date fields = 10/22/2012, when I select with
> date field = 10/22/2012  it is not selecting.   What is behind that date
> that I am not seeing so that I can select dates, tried different
formats??
>
> Thank You
>
>
> Barbara Lombardo
> Institutional Research
> Camden County College
> Blackwood NJ 08012
> Office: 856-374-4961
> Fax:    856-374-5016
>
> P Think before you print.
> CONFIDENTIALITY: This e-mail (including any attachments) may contain
> confidential, proprietary and privileged information, and unauthorized
> disclosure or use is prohibited. If you received this e-mail in error,
> please notify the sender and delete this e-mail from your system.
>
>
>   ­­





-----
Please reply to the list and not to my personal email.
Those desiring my consulting or training services please feel free to
email me.
---
"Nolite dare sanctum canibus neque mittatis margaritas vestras ante porcos
ne forte conculcent eas pedibus suis."
Cum es damnatorum possederunt porcos iens ut salire off sanguinum cliff in
abyssum?"
--
View this message in context:
http://spssx-discussion.1045642.n5.nabble.com/Dates-tp5723585p5723589.html
Sent from the SPSSX Discussion mailing list archive at Nabble.com.

=====================
To manage your subscription to SPSSX-L, send a message to
[hidden email] (not to SPSSX-L), with no body text except the
command. To leave the list, send the command
SIGNOFF SPSSX-L
For a list of commands to manage subscriptions, send the command
INFO REFCARD
Please reply to the list and not to my personal email.
Those desiring my consulting or training services please feel free to email me.
---
"Nolite dare sanctum canibus neque mittatis margaritas vestras ante porcos ne forte conculcent eas pedibus suis."
Cum es damnatorum possederunt porcos iens ut salire off sanguinum cliff in abyssum?"
Reply | Threaded
Open this post in threaded view
|

Re: Dates

Rick Oliver-3
I think 46400 resolves to sysmis.

data list free /x.
begin data
46400 86399 86400
end data.
formats x (adate10).
list.

Rick Oliver
Senior Information Developer
IBM Business Analytics (SPSS)
E-mail: [hidden email]




From:        David Marso <[hidden email]>
To:        [hidden email],
Date:        12/11/2013 11:39 AM
Subject:        Re: Dates
Sent by:        "SPSSX(r) Discussion" <[hidden email]>




If you want to get 'technical', 46400 resolves to Midnight Oct 15,1582 so I'm
not sure where "the day before" comes into your reckoning!

Rick Oliver wrote
> Technically, the day before October 15, 1582, which may or may not be
> October 4. The lowest valid value is 86400, which resolves to October 15,
> 1582.
>
> Rick Oliver
> Senior Information Developer
> IBM Business Analytics (SPSS)
> E-mail:

> oliverr@.ibm

>
>
>
> From:   David Marso &lt;

> david.marso@

> &gt;
> To:

> SPSSX-L@.uga

> ,
> Date:   12/11/2013 09:10 AM
> Subject:        Re: Dates
> Sent by:        "SPSSX(r) Discussion" &lt;

> SPSSX-L@.uga

> &gt;
>
>
>
> In fact # of seconds since Oct 15,1582 (the beginning of the Gregorian
> calendar).
> Kinda sucks for anthropologists ;-)))
>
>
> Rick Oliver wrote
>> An integer representing seconds since a date in the 16th century.
>>
>> Try:
>>
>> select if datevar=date.mdy(10,22,2012).
>>
>> Rick Oliver
>> Senior Information Developer
>> IBM Business Analytics (SPSS)
>> E-mail:
>
>> oliverr@.ibm
>
>>
>>
>>
>> From:   "Lombardo, Barbara" &lt;
>
>> BLombardo@
>
>> &gt;
>> To:
>
>> SPSSX-L@.uga
>
>> ,
>> Date:   12/11/2013 08:09 AM
>> Subject:        Dates
>> Sent by:        "SPSSX(r) Discussion" &lt;
>
>> SPSSX-L@.uga
>
>> &gt;
>>
>>
>>
>> Good morning,
>>
>> Using SPSS Version 22, have date fields = 10/22/2012, when I select with
>> date field = 10/22/2012  it is not selecting.   What is behind that date
>> that I am not seeing so that I can select dates, tried different
> formats??
>>
>> Thank You
>>
>>
>> Barbara Lombardo
>> Institutional Research
>> Camden County College
>> Blackwood NJ 08012
>> Office: 856-374-4961
>> Fax:    856-374-5016
>>
>> P Think before you print.
>> CONFIDENTIALITY: This e-mail (including any attachments) may contain
>> confidential, proprietary and privileged information, and unauthorized
>> disclosure or use is prohibited. If you received this e-mail in error,
>> please notify the sender and delete this e-mail from your system.
>>
>>
>>   ­­
>
>
>
>
>
> -----
> Please reply to the list and not to my personal email.
> Those desiring my consulting or training services please feel free to
> email me.
> ---
> "Nolite dare sanctum canibus neque mittatis margaritas vestras ante porcos
> ne forte conculcent eas pedibus suis."
> Cum es damnatorum possederunt porcos iens ut salire off sanguinum cliff in
> abyssum?"
> --
> View this message in context:
>
http://spssx-discussion.1045642.n5.nabble.com/Dates-tp5723585p5723589.html
> Sent from the SPSSX Discussion mailing list archive at Nabble.com.
>
> =====================
> To manage your subscription to SPSSX-L, send a message to

> LISTSERV@.UGA

>  (not to SPSSX-L), with no body text except the
> command. To leave the list, send the command
> SIGNOFF SPSSX-L
> For a list of commands to manage subscriptions, send the command
> INFO REFCARD





-----
Please reply to the list and not to my personal email.
Those desiring my consulting or training services please feel free to email me.
---
"Nolite dare sanctum canibus neque mittatis margaritas vestras ante porcos ne forte conculcent eas pedibus suis."
Cum es damnatorum possederunt porcos iens ut salire off sanguinum cliff in abyssum?"
--
View this message in context:
http://spssx-discussion.1045642.n5.nabble.com/Dates-tp5723585p5723597.html
Sent from the SPSSX Discussion mailing list archive at Nabble.com.

=====================
To manage your subscription to SPSSX-L, send a message to
[hidden email] (not to SPSSX-L), with no body text except the
command. To leave the list, send the command
SIGNOFF SPSSX-L
For a list of commands to manage subscriptions, send the command
INFO REFCARD


Reply | Threaded
Open this post in threaded view
|

Re: Dates

David Marso
Administrator
My bad!  I obviously meant 86400 which is 00:00:00 on 0ct,15,1582.
Where do you get the 'day before' in your previous post?

Rick Oliver wrote
I think 46400 resolves to sysmis.

data list free /x.
begin data
46400 86399 86400
end data.
formats x (adate10).
list.

Rick Oliver
Senior Information Developer
IBM Business Analytics (SPSS)
E-mail: [hidden email]



From:   David Marso <[hidden email]>
To:     [hidden email],
Date:   12/11/2013 11:39 AM
Subject:        Re: Dates
Sent by:        "SPSSX(r) Discussion" <[hidden email]>



If you want to get 'technical', 46400 resolves to Midnight Oct 15,1582 so
I'm
not sure where "the day before" comes into your reckoning!

Rick Oliver wrote
> Technically, the day before October 15, 1582, which may or may not be
> October 4. The lowest valid value is 86400, which resolves to October
15,
> 1582.
>
> Rick Oliver
> Senior Information Developer
> IBM Business Analytics (SPSS)
> E-mail:

> oliverr@.ibm

>
>
>
> From:   David Marso <

> david.marso@

> >
> To:

> SPSSX-L@.uga

> ,
> Date:   12/11/2013 09:10 AM
> Subject:        Re: Dates
> Sent by:        "SPSSX(r) Discussion" <

> SPSSX-L@.uga

> >
>
>
>
> In fact # of seconds since Oct 15,1582 (the beginning of the Gregorian
> calendar).
> Kinda sucks for anthropologists ;-)))
>
>
> Rick Oliver wrote
>> An integer representing seconds since a date in the 16th century.
>>
>> Try:
>>
>> select if datevar=date.mdy(10,22,2012).
>>
>> Rick Oliver
>> Senior Information Developer
>> IBM Business Analytics (SPSS)
>> E-mail:
>
>> oliverr@.ibm
>
>>
>>
>>
>> From:   "Lombardo, Barbara" <
>
>> BLombardo@
>
>> >
>> To:
>
>> SPSSX-L@.uga
>
>> ,
>> Date:   12/11/2013 08:09 AM
>> Subject:        Dates
>> Sent by:        "SPSSX(r) Discussion" <
>
>> SPSSX-L@.uga
>
>> >
>>
>>
>>
>> Good morning,
>>
>> Using SPSS Version 22, have date fields = 10/22/2012, when I select
with
>> date field = 10/22/2012  it is not selecting.   What is behind that
date
>> that I am not seeing so that I can select dates, tried different
> formats??
>>
>> Thank You
>>
>>
>> Barbara Lombardo
>> Institutional Research
>> Camden County College
>> Blackwood NJ 08012
>> Office: 856-374-4961
>> Fax:    856-374-5016
>>
>> P Think before you print.
>> CONFIDENTIALITY: This e-mail (including any attachments) may contain
>> confidential, proprietary and privileged information, and unauthorized
>> disclosure or use is prohibited. If you received this e-mail in error,
>> please notify the sender and delete this e-mail from your system.
>>
>>
>>   ­­
>
>
>
>
>
> -----
> Please reply to the list and not to my personal email.
> Those desiring my consulting or training services please feel free to
> email me.
> ---
> "Nolite dare sanctum canibus neque mittatis margaritas vestras ante
porcos
> ne forte conculcent eas pedibus suis."
> Cum es damnatorum possederunt porcos iens ut salire off sanguinum cliff
in
> abyssum?"
> --
> View this message in context:
>
http://spssx-discussion.1045642.n5.nabble.com/Dates-tp5723585p5723589.html
> Sent from the SPSSX Discussion mailing list archive at Nabble.com.
>
> =====================
> To manage your subscription to SPSSX-L, send a message to

> LISTSERV@.UGA

>  (not to SPSSX-L), with no body text except the
> command. To leave the list, send the command
> SIGNOFF SPSSX-L
> For a list of commands to manage subscriptions, send the command
> INFO REFCARD





-----
Please reply to the list and not to my personal email.
Those desiring my consulting or training services please feel free to
email me.
---
"Nolite dare sanctum canibus neque mittatis margaritas vestras ante porcos
ne forte conculcent eas pedibus suis."
Cum es damnatorum possederunt porcos iens ut salire off sanguinum cliff in
abyssum?"
--
View this message in context:
http://spssx-discussion.1045642.n5.nabble.com/Dates-tp5723585p5723597.html
Sent from the SPSSX Discussion mailing list archive at Nabble.com.

=====================
To manage your subscription to SPSSX-L, send a message to
[hidden email] (not to SPSSX-L), with no body text except the
command. To leave the list, send the command
SIGNOFF SPSSX-L
For a list of commands to manage subscriptions, send the command
INFO REFCARD
Please reply to the list and not to my personal email.
Those desiring my consulting or training services please feel free to email me.
---
"Nolite dare sanctum canibus neque mittatis margaritas vestras ante porcos ne forte conculcent eas pedibus suis."
Cum es damnatorum possederunt porcos iens ut salire off sanguinum cliff in abyssum?"
Reply | Threaded
Open this post in threaded view
|

Re: Dates

Rick Oliver-3
86400 seconds = 1 day.

If 86400 is 15-OCT-1582 00:00:00, then 0 is midnight of the day before that.

Rick Oliver
Senior Information Developer
IBM Business Analytics (SPSS)
E-mail: [hidden email]




From:        David Marso <[hidden email]>
To:        [hidden email],
Date:        12/11/2013 11:56 AM
Subject:        Re: Dates
Sent by:        "SPSSX(r) Discussion" <[hidden email]>




My bad!  I *obviously* meant 86400 which is 00:00:00 on 0ct,15,1582.
Where do you get the 'day before' in your previous post?


Rick Oliver wrote
> I think 46400 resolves to sysmis.
>
> data list free /x.
> begin data
> 46400 86399 86400
> end data.
> formats x (adate10).
> list.
>
> Rick Oliver
> Senior Information Developer
> IBM Business Analytics (SPSS)
> E-mail:

> oliverr@.ibm

>
>
>
> From:   David Marso &lt;

> david.marso@

> &gt;
> To:

> SPSSX-L@.uga

> ,
> Date:   12/11/2013 11:39 AM
> Subject:        Re: Dates
> Sent by:        "SPSSX(r) Discussion" &lt;

> SPSSX-L@.uga

> &gt;
>
>
>
> If you want to get 'technical', 46400 resolves to Midnight Oct 15,1582 so
> I'm
> not sure where "the day before" comes into your reckoning!
>
> Rick Oliver wrote
>> Technically, the day before October 15, 1582, which may or may not be
>> October 4. The lowest valid value is 86400, which resolves to October
> 15,
>> 1582.
>>
>> Rick Oliver
>> Senior Information Developer
>> IBM Business Analytics (SPSS)
>> E-mail:
>
>> oliverr@.ibm
>
>>
>>
>>
>> From:   David Marso &lt;
>
>> david.marso@
>
>> &gt;
>> To:
>
>> SPSSX-L@.uga
>
>> ,
>> Date:   12/11/2013 09:10 AM
>> Subject:        Re: Dates
>> Sent by:        "SPSSX(r) Discussion" &lt;
>
>> SPSSX-L@.uga
>
>> &gt;
>>
>>
>>
>> In fact # of seconds since Oct 15,1582 (the beginning of the Gregorian
>> calendar).
>> Kinda sucks for anthropologists ;-)))
>>
>>
>> Rick Oliver wrote
>>> An integer representing seconds since a date in the 16th century.
>>>
>>> Try:
>>>
>>> select if datevar=date.mdy(10,22,2012).
>>>
>>> Rick Oliver
>>> Senior Information Developer
>>> IBM Business Analytics (SPSS)
>>> E-mail:
>>
>>> oliverr@.ibm
>>
>>>
>>>
>>>
>>> From:   "Lombardo, Barbara" &lt;
>>
>>> BLombardo@
>>
>>> &gt;
>>> To:
>>
>>> SPSSX-L@.uga
>>
>>> ,
>>> Date:   12/11/2013 08:09 AM
>>> Subject:        Dates
>>> Sent by:        "SPSSX(r) Discussion" &lt;
>>
>>> SPSSX-L@.uga
>>
>>> &gt;
>>>
>>>
>>>
>>> Good morning,
>>>
>>> Using SPSS Version 22, have date fields = 10/22/2012, when I select
> with
>>> date field = 10/22/2012  it is not selecting.   What is behind that
> date
>>> that I am not seeing so that I can select dates, tried different
>> formats??
>>>
>>> Thank You
>>>
>>>
>>> Barbara Lombardo
>>> Institutional Research
>>> Camden County College
>>> Blackwood NJ 08012
>>> Office: 856-374-4961
>>> Fax:    856-374-5016
>>>
>>> P Think before you print.
>>> CONFIDENTIALITY: This e-mail (including any attachments) may contain
>>> confidential, proprietary and privileged information, and unauthorized
>>> disclosure or use is prohibited. If you received this e-mail in error,
>>> please notify the sender and delete this e-mail from your system.
>>>
>>>
>>>   ­­
>>
>>
>>
>>
>>
>> -----
>> Please reply to the list and not to my personal email.
>> Those desiring my consulting or training services please feel free to
>> email me.
>> ---
>> "Nolite dare sanctum canibus neque mittatis margaritas vestras ante
> porcos
>> ne forte conculcent eas pedibus suis."
>> Cum es damnatorum possederunt porcos iens ut salire off sanguinum cliff
> in
>> abyssum?"
>> --
>> View this message in context:
>>
>
http://spssx-discussion.1045642.n5.nabble.com/Dates-tp5723585p5723589.html
>> Sent from the SPSSX Discussion mailing list archive at Nabble.com.
>>
>> =====================
>> To manage your subscription to SPSSX-L, send a message to
>
>> LISTSERV@.UGA
>
>>  (not to SPSSX-L), with no body text except the
>> command. To leave the list, send the command
>> SIGNOFF SPSSX-L
>> For a list of commands to manage subscriptions, send the command
>> INFO REFCARD
>
>
>
>
>
> -----
> Please reply to the list and not to my personal email.
> Those desiring my consulting or training services please feel free to
> email me.
> ---
> "Nolite dare sanctum canibus neque mittatis margaritas vestras ante porcos
> ne forte conculcent eas pedibus suis."
> Cum es damnatorum possederunt porcos iens ut salire off sanguinum cliff in
> abyssum?"
> --
> View this message in context:
>
http://spssx-discussion.1045642.n5.nabble.com/Dates-tp5723585p5723597.html
> Sent from the SPSSX Discussion mailing list archive at Nabble.com.
>
> =====================
> To manage your subscription to SPSSX-L, send a message to

> LISTSERV@.UGA

>  (not to SPSSX-L), with no body text except the
> command. To leave the list, send the command
> SIGNOFF SPSSX-L
> For a list of commands to manage subscriptions, send the command
> INFO REFCARD





-----
Please reply to the list and not to my personal email.
Those desiring my consulting or training services please feel free to email me.
---
"Nolite dare sanctum canibus neque mittatis margaritas vestras ante porcos ne forte conculcent eas pedibus suis."
Cum es damnatorum possederunt porcos iens ut salire off sanguinum cliff in abyssum?"
--
View this message in context:
http://spssx-discussion.1045642.n5.nabble.com/Dates-tp5723585p5723599.html
Sent from the SPSSX Discussion mailing list archive at Nabble.com.

=====================
To manage your subscription to SPSSX-L, send a message to
[hidden email] (not to SPSSX-L), with no body text except the
command. To leave the list, send the command
SIGNOFF SPSSX-L
For a list of commands to manage subscriptions, send the command
INFO REFCARD


Reply | Threaded
Open this post in threaded view
|

Re: Dates

ViAnn Beadle

How about helping the OP with her selection problem then arguing over the bounds of the date representation. But first, the OP needs to explain how she is attempting to select on a date.

 

From: SPSSX(r) Discussion [mailto:[hidden email]] On Behalf Of Rick Oliver
Sent: Wednesday, December 11, 2013 11:14 AM
To: [hidden email]
Subject: Re: Dates

 

86400 seconds = 1 day.

If 86400 is 15-OCT-1582 00:00:00, then 0 is midnight of the day before that.

Rick Oliver
Senior Information Developer
IBM Business Analytics (SPSS)
E-mail: [hidden email]




From:        David Marso <[hidden email]>
To:        [hidden email],
Date:        12/11/2013 11:56 AM
Subject:        Re: Dates
Sent by:        "SPSSX(r) Discussion" <[hidden email]>





My bad!  I *obviously* meant 86400 which is 00:00:00 on 0ct,15,1582.
Where do you get the 'day before' in your previous post?


Rick Oliver wrote
> I think 46400 resolves to sysmis.
>
> data list free /x.
> begin data
> 46400 86399 86400
> end data.
> formats x (adate10).
> list.
>
> Rick Oliver
> Senior Information Developer
> IBM Business Analytics (SPSS)
> E-mail:

> [hidden email]

>
>
>
> From:   David Marso &lt;

> [hidden email]

> &gt;
> To:

> [hidden email]

> ,
> Date:   12/11/2013 11:39 AM
> Subject:        Re: Dates
> Sent by:        "SPSSX(r) Discussion" &lt;

> [hidden email]

> &gt;
>
>
>
> If you want to get 'technical', 46400 resolves to Midnight Oct 15,1582 so
> I'm
> not sure where "the day before" comes into your reckoning!
>
> Rick Oliver wrote
>> Technically, the day before October 15, 1582, which may or may not be
>> October 4. The lowest valid value is 86400, which resolves to October
> 15,
>> 1582.
>>
>> Rick Oliver
>> Senior Information Developer
>> IBM Business Analytics (SPSS)
>> E-mail:
>
>> [hidden email]
>
>>
>>
>>
>> From:   David Marso &lt;
>
>> [hidden email]
>
>> &gt;
>> To:
>
>> [hidden email]
>
>> ,
>> Date:   12/11/2013 09:10 AM
>> Subject:        Re: Dates
>> Sent by:        "SPSSX(r) Discussion" &lt;
>
>> [hidden email]
>
>> &gt;
>>
>>
>>
>> In fact # of seconds since Oct 15,1582 (the beginning of the Gregorian
>> calendar).
>> Kinda sucks for anthropologists ;-)))
>>
>>
>> Rick Oliver wrote
>>> An integer representing seconds since a date in the 16th century.
>>>
>>> Try:
>>>
>>> select if datevar=date.mdy(10,22,2012).
>>>
>>> Rick Oliver
>>> Senior Information Developer
>>> IBM Business Analytics (SPSS)
>>> E-mail:
>>
>>> [hidden email]
>>
>>>
>>>
>>>
>>> From:   "Lombardo, Barbara" &lt;
>>
>>> BLombardo@
>>
>>> &gt;
>>> To:
>>
>>> [hidden email]
>>
>>> ,
>>> Date:   12/11/2013 08:09 AM
>>> Subject:        Dates
>>> Sent by:        "SPSSX(r) Discussion" &lt;
>>
>>> [hidden email]
>>
>>> &gt;
>>>
>>>
>>>
>>> Good morning,
>>>
>>> Using SPSS Version 22, have date fields = 10/22/2012, when I select
> with
>>> date field = 10/22/2012  it is not selecting.   What is behind that
> date
>>> that I am not seeing so that I can select dates, tried different
>> formats??
>>>
>>> Thank You
>>>
>>>
>>> Barbara Lombardo
>>> Institutional Research
>>> Camden County College
>>> Blackwood NJ 08012
>>> Office: 856-374-4961
>>> Fax:    856-374-5016
>>>
>>> P Think before you print.
>>> CONFIDENTIALITY: This e-mail (including any attachments) may contain
>>> confidential, proprietary and privileged information, and unauthorized
>>> disclosure or use is prohibited. If you received this e-mail in error,
>>> please notify the sender and delete this e-mail from your system.
>>>
>>>
>>>   ­­
>>
>>
>>
>>
>>
>> -----
>> Please reply to the list and not to my personal email.
>> Those desiring my consulting or training services please feel free to
>> email me.
>> ---
>> "Nolite dare sanctum canibus neque mittatis margaritas vestras ante
> porcos
>> ne forte conculcent eas pedibus suis."
>> Cum es damnatorum possederunt porcos iens ut salire off sanguinum cliff
> in
>> abyssum?"
>> --
>> View this message in context:
>>
>
http://spssx-discussion.1045642.n5.nabble.com/Dates-tp5723585p5723589.html
>> Sent from the SPSSX Discussion mailing list archive at Nabble.com.
>>
>> =====================
>> To manage your subscription to SPSSX-L, send a message to
>
>> [hidden email]
>
>>  (not to SPSSX-L), with no body text except the
>> command. To leave the list, send the command
>> SIGNOFF SPSSX-L
>> For a list of commands to manage subscriptions, send the command
>> INFO REFCARD
>
>
>
>
>
> -----
> Please reply to the list and not to my personal email.
> Those desiring my consulting or training services please feel free to
> email me.
> ---
> "Nolite dare sanctum canibus neque mittatis margaritas vestras ante porcos
> ne forte conculcent eas pedibus suis."
> Cum es damnatorum possederunt porcos iens ut salire off sanguinum cliff in
> abyssum?"
> --
> View this message in context:
>
http://spssx-discussion.1045642.n5.nabble.com/Dates-tp5723585p5723597.html
> Sent from the SPSSX Discussion mailing list archive at Nabble.com.
>
> =====================
> To manage your subscription to SPSSX-L, send a message to

> [hidden email]

>  (not to SPSSX-L), with no body text except the
> command. To leave the list, send the command
> SIGNOFF SPSSX-L
> For a list of commands to manage subscriptions, send the command
> INFO REFCARD





-----
Please reply to the list and not to my personal email.
Those desiring my consulting or training services please feel free to email me.
---
"Nolite dare sanctum canibus neque mittatis margaritas vestras ante porcos ne forte conculcent eas pedibus suis."
Cum es damnatorum possederunt porcos iens ut salire off sanguinum cliff in abyssum?"
--
View this message in context:
http://spssx-discussion.1045642.n5.nabble.com/Dates-tp5723585p5723599.html
Sent from the SPSSX Discussion mailing list archive at Nabble.com.

=====================
To manage your subscription to SPSSX-L, send a message to
[hidden email] (not to SPSSX-L), with no body text except the
command. To leave the list, send the command
SIGNOFF SPSSX-L
For a list of commands to manage subscriptions, send the command
INFO REFCARD

Reply | Threaded
Open this post in threaded view
|

Re: Dates

Rick Oliver-3
I already did that and she responded that it worked:

select if datevar=date.mdy(month, day, year).

Rick Oliver
Senior Information Developer
IBM Business Analytics (SPSS)
E-mail: [hidden email]




From:        ViAnn Beadle <[hidden email]>
To:        [hidden email],
Date:        12/11/2013 12:23 PM
Subject:        Re: Dates
Sent by:        "SPSSX(r) Discussion" <[hidden email]>




How about helping the OP with her selection problem then arguing over the bounds of the date representation. But first, the OP needs to explain how she is attempting to select on a date.
 
From: SPSSX(r) Discussion [[hidden email]] On Behalf Of Rick Oliver
Sent:
Wednesday, December 11, 2013 11:14 AM
To:
[hidden email]
Subject:
Re: Dates

 
86400 seconds = 1 day.

If 86400 is 15-OCT-1582 00:00:00, then 0 is midnight of the day before that.


Rick Oliver
Senior Information Developer
IBM Business Analytics (SPSS)
E-mail:
oliverr@...



From:        
David Marso <david.marso@...>
To:        
[hidden email],
Date:        
12/11/2013 11:56 AM
Subject:        
Re: Dates
Sent by:        
"SPSSX(r) Discussion" <[hidden email]>





My bad!  I *obviously* meant 86400 which is 00:00:00 on 0ct,15,1582.
Where do you get the 'day before' in your previous post?


Rick Oliver wrote
> I think 46400 resolves to sysmis.
>
> data list free /x.
> begin data
> 46400 86399 86400
> end data.
> formats x (adate10).
> list.
>
> Rick Oliver
> Senior Information Developer
> IBM Business Analytics (SPSS)
> E-mail:

>
oliverr@.ibm

>
>
>
> From:   David Marso &lt;

>
david.marso@

> &gt;
> To:

>
[hidden email]

> ,
> Date:   12/11/2013 11:39 AM
> Subject:        Re: Dates
> Sent by:        "SPSSX(r) Discussion" &lt;

>
[hidden email]

> &gt;
>
>
>
> If you want to get 'technical', 46400 resolves to Midnight Oct 15,1582 so
> I'm
> not sure where "the day before" comes into your reckoning!
>
> Rick Oliver wrote
>> Technically, the day before October 15, 1582, which may or may not be
>> October 4. The lowest valid value is 86400, which resolves to October
> 15,
>> 1582.
>>
>> Rick Oliver
>> Senior Information Developer
>> IBM Business Analytics (SPSS)
>> E-mail:
>
>>
oliverr@.ibm
>
>>
>>
>>
>> From:   David Marso &lt;
>
>>
david.marso@
>
>> &gt;
>> To:
>
>>
[hidden email]
>
>> ,
>> Date:   12/11/2013 09:10 AM
>> Subject:        Re: Dates
>> Sent by:        "SPSSX(r) Discussion" &lt;
>
>>
[hidden email]
>
>> &gt;
>>
>>
>>
>> In fact # of seconds since Oct 15,1582 (the beginning of the Gregorian
>> calendar).
>> Kinda sucks for anthropologists ;-)))
>>
>>
>> Rick Oliver wrote
>>> An integer representing seconds since a date in the 16th century.
>>>
>>> Try:
>>>
>>> select if datevar=date.mdy(10,22,2012).
>>>
>>> Rick Oliver
>>> Senior Information Developer
>>> IBM Business Analytics (SPSS)
>>> E-mail:
>>
>>>
oliverr@.ibm
>>
>>>
>>>
>>>
>>> From:   "Lombardo, Barbara" &lt;
>>
>>> BLombardo@
>>
>>> &gt;
>>> To:
>>
>>>
[hidden email]
>>
>>> ,
>>> Date:   12/11/2013 08:09 AM
>>> Subject:        Dates
>>> Sent by:        "SPSSX(r) Discussion" &lt;
>>
>>>
[hidden email]
>>
>>> &gt;
>>>
>>>
>>>
>>> Good morning,
>>>
>>> Using SPSS Version 22, have date fields = 10/22/2012, when I select
> with
>>> date field = 10/22/2012  it is not selecting.   What is behind that
> date
>>> that I am not seeing so that I can select dates, tried different
>> formats??
>>>
>>> Thank You
>>>
>>>
>>> Barbara Lombardo
>>> Institutional Research
>>> Camden County College
>>> Blackwood NJ 08012
>>> Office: 856-374-4961
>>> Fax:    856-374-5016
>>>
>>> P Think before you print.
>>> CONFIDENTIALITY: This e-mail (including any attachments) may contain
>>> confidential, proprietary and privileged information, and unauthorized
>>> disclosure or use is prohibited. If you received this e-mail in error,
>>> please notify the sender and delete this e-mail from your system.
>>>
>>>
>>>   ­­
>>
>>
>>
>>
>>
>> -----
>> Please reply to the list and not to my personal email.
>> Those desiring my consulting or training services please feel free to
>> email me.
>> ---
>> "Nolite dare sanctum canibus neque mittatis margaritas vestras ante
> porcos
>> ne forte conculcent eas pedibus suis."
>> Cum es damnatorum possederunt porcos iens ut salire off sanguinum cliff
> in
>> abyssum?"
>> --
>> View this message in context:
>>
>
http://spssx-discussion.1045642.n5.nabble.com/Dates-tp5723585p5723589.html
>> Sent from the SPSSX Discussion mailing list archive at Nabble.com.
>>
>> =====================
>> To manage your subscription to SPSSX-L, send a message to
>
>>
LISTSERV@.UGA
>
>>  (not to SPSSX-L), with no body text except the
>> command. To leave the list, send the command
>> SIGNOFF SPSSX-L
>> For a list of commands to manage subscriptions, send the command
>> INFO REFCARD
>
>
>
>
>
> -----
> Please reply to the list and not to my personal email.
> Those desiring my consulting or training services please feel free to
> email me.
> ---
> "Nolite dare sanctum canibus neque mittatis margaritas vestras ante porcos
> ne forte conculcent eas pedibus suis."
> Cum es damnatorum possederunt porcos iens ut salire off sanguinum cliff in
> abyssum?"
> --
> View this message in context:
>
http://spssx-discussion.1045642.n5.nabble.com/Dates-tp5723585p5723597.html
> Sent from the SPSSX Discussion mailing list archive at Nabble.com.
>
> =====================
> To manage your subscription to SPSSX-L, send a message to

>
LISTSERV@.UGA

>  (not to SPSSX-L), with no body text except the
> command. To leave the list, send the command
> SIGNOFF SPSSX-L
> For a list of commands to manage subscriptions, send the command
> INFO REFCARD





-----
Please reply to the list and not to my personal email.
Those desiring my consulting or training services please feel free to email me.
---
"Nolite dare sanctum canibus neque mittatis margaritas vestras ante porcos ne forte conculcent eas pedibus suis."
Cum es damnatorum possederunt porcos iens ut salire off sanguinum cliff in abyssum?"
--
View this message in context:
http://spssx-discussion.1045642.n5.nabble.com/Dates-tp5723585p5723599.html
Sent from the SPSSX Discussion mailing list archive at Nabble.com.

=====================
To manage your subscription to SPSSX-L, send a message to

LISTSERV@... (not to SPSSX-L), with no body text except the
command. To leave the list, send the command
SIGNOFF SPSSX-L
For a list of commands to manage subscriptions, send the command
INFO REFCARD

Reply | Threaded
Open this post in threaded view
|

Re: Dates

David Marso
Administrator
Indeed, the first reply in the thread.

Rick Oliver wrote
I already did that and she responded that it worked:

select if datevar=date.mdy(month, day, year).

Rick Oliver
Senior Information Developer
IBM Business Analytics (SPSS)
E-mail: [hidden email]



From:   ViAnn Beadle <[hidden email]>
To:     [hidden email],
Date:   12/11/2013 12:23 PM
Subject:        Re: Dates
Sent by:        "SPSSX(r) Discussion" <[hidden email]>



How about helping the OP with her selection problem then arguing over the
bounds of the date representation. But first, the OP needs to explain how
she is attempting to select on a date.
 
From: SPSSX(r) Discussion [mailto:[hidden email]] On Behalf Of
Rick Oliver
Sent: Wednesday, December 11, 2013 11:14 AM
To: [hidden email]
Subject: Re: Dates
 
86400 seconds = 1 day.

If 86400 is 15-OCT-1582 00:00:00, then 0 is midnight of the day before
that.

Rick Oliver
Senior Information Developer
IBM Business Analytics (SPSS)
E-mail: [hidden email] 



From:        David Marso <[hidden email]>
To:        [hidden email],
Date:        12/11/2013 11:56 AM
Subject:        Re: Dates
Sent by:        "SPSSX(r) Discussion" <[hidden email]>




My bad!  I *obviously* meant 86400 which is 00:00:00 on 0ct,15,1582.
Where do you get the 'day before' in your previous post?


Rick Oliver wrote
> I think 46400 resolves to sysmis.
>
> data list free /x.
> begin data
> 46400 86399 86400
> end data.
> formats x (adate10).
> list.
>
> Rick Oliver
> Senior Information Developer
> IBM Business Analytics (SPSS)
> E-mail:

> oliverr@.ibm

>
>
>
> From:   David Marso <

> david.marso@

> >
> To:

> SPSSX-L@.uga

> ,
> Date:   12/11/2013 11:39 AM
> Subject:        Re: Dates
> Sent by:        "SPSSX(r) Discussion" <

> SPSSX-L@.uga

> >
>
>
>
> If you want to get 'technical', 46400 resolves to Midnight Oct 15,1582
so
> I'm
> not sure where "the day before" comes into your reckoning!
>
> Rick Oliver wrote
>> Technically, the day before October 15, 1582, which may or may not be
>> October 4. The lowest valid value is 86400, which resolves to October
> 15,
>> 1582.
>>
>> Rick Oliver
>> Senior Information Developer
>> IBM Business Analytics (SPSS)
>> E-mail:
>
>> oliverr@.ibm
>
>>
>>
>>
>> From:   David Marso <
>
>> david.marso@
>
>> >
>> To:
>
>> SPSSX-L@.uga
>
>> ,
>> Date:   12/11/2013 09:10 AM
>> Subject:        Re: Dates
>> Sent by:        "SPSSX(r) Discussion" <
>
>> SPSSX-L@.uga
>
>> >
>>
>>
>>
>> In fact # of seconds since Oct 15,1582 (the beginning of the Gregorian
>> calendar).
>> Kinda sucks for anthropologists ;-)))
>>
>>
>> Rick Oliver wrote
>>> An integer representing seconds since a date in the 16th century.
>>>
>>> Try:
>>>
>>> select if datevar=date.mdy(10,22,2012).
>>>
>>> Rick Oliver
>>> Senior Information Developer
>>> IBM Business Analytics (SPSS)
>>> E-mail:
>>
>>> oliverr@.ibm
>>
>>>
>>>
>>>
>>> From:   "Lombardo, Barbara" <
>>
>>> BLombardo@
>>
>>> >
>>> To:
>>
>>> SPSSX-L@.uga
>>
>>> ,
>>> Date:   12/11/2013 08:09 AM
>>> Subject:        Dates
>>> Sent by:        "SPSSX(r) Discussion" <
>>
>>> SPSSX-L@.uga
>>
>>> >
>>>
>>>
>>>
>>> Good morning,
>>>
>>> Using SPSS Version 22, have date fields = 10/22/2012, when I select
> with
>>> date field = 10/22/2012  it is not selecting.   What is behind that
> date
>>> that I am not seeing so that I can select dates, tried different
>> formats??
>>>
>>> Thank You
>>>
>>>
>>> Barbara Lombardo
>>> Institutional Research
>>> Camden County College
>>> Blackwood NJ 08012
>>> Office: 856-374-4961
>>> Fax:    856-374-5016
>>>
>>> P Think before you print.
>>> CONFIDENTIALITY: This e-mail (including any attachments) may contain
>>> confidential, proprietary and privileged information, and unauthorized
>>> disclosure or use is prohibited. If you received this e-mail in error,
>>> please notify the sender and delete this e-mail from your system.
>>>
>>>
>>>   ­­
>>
>>
>>
>>
>>
>> -----
>> Please reply to the list and not to my personal email.
>> Those desiring my consulting or training services please feel free to
>> email me.
>> ---
>> "Nolite dare sanctum canibus neque mittatis margaritas vestras ante
> porcos
>> ne forte conculcent eas pedibus suis."
>> Cum es damnatorum possederunt porcos iens ut salire off sanguinum cliff
> in
>> abyssum?"
>> --
>> View this message in context:
>>
>
http://spssx-discussion.1045642.n5.nabble.com/Dates-tp5723585p5723589.html
>> Sent from the SPSSX Discussion mailing list archive at Nabble.com.
>>
>> =====================
>> To manage your subscription to SPSSX-L, send a message to
>
>> LISTSERV@.UGA
>
>>  (not to SPSSX-L), with no body text except the
>> command. To leave the list, send the command
>> SIGNOFF SPSSX-L
>> For a list of commands to manage subscriptions, send the command
>> INFO REFCARD
>
>
>
>
>
> -----
> Please reply to the list and not to my personal email.
> Those desiring my consulting or training services please feel free to
> email me.
> ---
> "Nolite dare sanctum canibus neque mittatis margaritas vestras ante
porcos
> ne forte conculcent eas pedibus suis."
> Cum es damnatorum possederunt porcos iens ut salire off sanguinum cliff
in
> abyssum?"
> --
> View this message in context:
>
http://spssx-discussion.1045642.n5.nabble.com/Dates-tp5723585p5723597.html
> Sent from the SPSSX Discussion mailing list archive at Nabble.com.
>
> =====================
> To manage your subscription to SPSSX-L, send a message to

> LISTSERV@.UGA

>  (not to SPSSX-L), with no body text except the
> command. To leave the list, send the command
> SIGNOFF SPSSX-L
> For a list of commands to manage subscriptions, send the command
> INFO REFCARD





-----
Please reply to the list and not to my personal email.
Those desiring my consulting or training services please feel free to
email me.
---
"Nolite dare sanctum canibus neque mittatis margaritas vestras ante porcos
ne forte conculcent eas pedibus suis."
Cum es damnatorum possederunt porcos iens ut salire off sanguinum cliff in
abyssum?"
--
View this message in context:
http://spssx-discussion.1045642.n5.nabble.com/Dates-tp5723585p5723599.html
Sent from the SPSSX Discussion mailing list archive at Nabble.com.

=====================
To manage your subscription to SPSSX-L, send a message to
[hidden email] (not to SPSSX-L), with no body text except the
command. To leave the list, send the command
SIGNOFF SPSSX-L
For a list of commands to manage subscriptions, send the command
INFO REFCARD
Please reply to the list and not to my personal email.
Those desiring my consulting or training services please feel free to email me.
---
"Nolite dare sanctum canibus neque mittatis margaritas vestras ante porcos ne forte conculcent eas pedibus suis."
Cum es damnatorum possederunt porcos iens ut salire off sanguinum cliff in abyssum?"
Reply | Threaded
Open this post in threaded view
|

Re: Dates

David Marso
Administrator
In reply to this post by Rick Oliver-3
I stand corrected ;-)
Your 'may or may not have been Oct 4' is an interesting response.
Probably depends on where one was at the time.
http://www.timeanddate.com/calendar/gregorian-calendar.html
Sounds like a real flustercluck.

From the FM:
Date and time formats are both input and output formats. Like numeric formats, each input format generates a default output format, automatically expanded (if necessary) to accommodate display width. Internally, all date and time format values are stored as a number of seconds: date formats (e.g., DATE, ADATE, SDATE, DATETIME) are stored as the number of seconds since October 14, 1582

Which leads to the question was there an Oct 14, 1582 ?
Is the manual wrong?  OTOH: CEFGW ;-)


Rick Oliver wrote
86400 seconds = 1 day.

If 86400 is 15-OCT-1582 00:00:00, then 0 is midnight of the day before
that.

Rick Oliver
Senior Information Developer
IBM Business Analytics (SPSS)
E-mail: [hidden email]



From:   David Marso <[hidden email]>
To:     [hidden email],
Date:   12/11/2013 11:56 AM
Subject:        Re: Dates
Sent by:        "SPSSX(r) Discussion" <[hidden email]>



My bad!  I *obviously* meant 86400 which is 00:00:00 on 0ct,15,1582.
Where do you get the 'day before' in your previous post?


Rick Oliver wrote
> I think 46400 resolves to sysmis.
>
> data list free /x.
> begin data
> 46400 86399 86400
> end data.
> formats x (adate10).
> list.
>
> Rick Oliver
> Senior Information Developer
> IBM Business Analytics (SPSS)
> E-mail:

> oliverr@.ibm

>
>
>
> From:   David Marso <

> david.marso@

> >
> To:

> SPSSX-L@.uga

> ,
> Date:   12/11/2013 11:39 AM
> Subject:        Re: Dates
> Sent by:        "SPSSX(r) Discussion" <

> SPSSX-L@.uga

> >
>
>
>
> If you want to get 'technical', 46400 resolves to Midnight Oct 15,1582
so
> I'm
> not sure where "the day before" comes into your reckoning!
>
> Rick Oliver wrote
>> Technically, the day before October 15, 1582, which may or may not be
>> October 4. The lowest valid value is 86400, which resolves to October
> 15,
>> 1582.
>>
>> Rick Oliver
>> Senior Information Developer
>> IBM Business Analytics (SPSS)
>> E-mail:
>
>> oliverr@.ibm
>
>>
>>
>>
>> From:   David Marso <
>
>> david.marso@
>
>> >
>> To:
>
>> SPSSX-L@.uga
>
>> ,
>> Date:   12/11/2013 09:10 AM
>> Subject:        Re: Dates
>> Sent by:        "SPSSX(r) Discussion" <
>
>> SPSSX-L@.uga
>
>> >
>>
>>
>>
>> In fact # of seconds since Oct 15,1582 (the beginning of the Gregorian
>> calendar).
>> Kinda sucks for anthropologists ;-)))
>>
>>
>> Rick Oliver wrote
>>> An integer representing seconds since a date in the 16th century.
>>>
>>> Try:
>>>
>>> select if datevar=date.mdy(10,22,2012).
>>>
>>> Rick Oliver
>>> Senior Information Developer
>>> IBM Business Analytics (SPSS)
>>> E-mail:
>>
>>> oliverr@.ibm
>>
>>>
>>>
>>>
>>> From:   "Lombardo, Barbara" <
>>
>>> BLombardo@
>>
>>> >
>>> To:
>>
>>> SPSSX-L@.uga
>>
>>> ,
>>> Date:   12/11/2013 08:09 AM
>>> Subject:        Dates
>>> Sent by:        "SPSSX(r) Discussion" <
>>
>>> SPSSX-L@.uga
>>
>>> >
>>>
>>>
>>>
>>> Good morning,
>>>
>>> Using SPSS Version 22, have date fields = 10/22/2012, when I select
> with
>>> date field = 10/22/2012  it is not selecting.   What is behind that
> date
>>> that I am not seeing so that I can select dates, tried different
>> formats??
>>>
>>> Thank You
>>>
>>>
>>> Barbara Lombardo
>>> Institutional Research
>>> Camden County College
>>> Blackwood NJ 08012
>>> Office: 856-374-4961
>>> Fax:    856-374-5016
>>>
>>> P Think before you print.
>>> CONFIDENTIALITY: This e-mail (including any attachments) may contain
>>> confidential, proprietary and privileged information, and unauthorized
>>> disclosure or use is prohibited. If you received this e-mail in error,
>>> please notify the sender and delete this e-mail from your system.
>>>
>>>
>>>   ­­
>>
>>
>>
>>
>>
>> -----
>> Please reply to the list and not to my personal email.
>> Those desiring my consulting or training services please feel free to
>> email me.
>> ---
>> "Nolite dare sanctum canibus neque mittatis margaritas vestras ante
> porcos
>> ne forte conculcent eas pedibus suis."
>> Cum es damnatorum possederunt porcos iens ut salire off sanguinum cliff
> in
>> abyssum?"
>> --
>> View this message in context:
>>
>
http://spssx-discussion.1045642.n5.nabble.com/Dates-tp5723585p5723589.html
>> Sent from the SPSSX Discussion mailing list archive at Nabble.com.
>>
>> =====================
>> To manage your subscription to SPSSX-L, send a message to
>
>> LISTSERV@.UGA
>
>>  (not to SPSSX-L), with no body text except the
>> command. To leave the list, send the command
>> SIGNOFF SPSSX-L
>> For a list of commands to manage subscriptions, send the command
>> INFO REFCARD
>
>
>
>
>
> -----
> Please reply to the list and not to my personal email.
> Those desiring my consulting or training services please feel free to
> email me.
> ---
> "Nolite dare sanctum canibus neque mittatis margaritas vestras ante
porcos
> ne forte conculcent eas pedibus suis."
> Cum es damnatorum possederunt porcos iens ut salire off sanguinum cliff
in
> abyssum?"
> --
> View this message in context:
>
http://spssx-discussion.1045642.n5.nabble.com/Dates-tp5723585p5723597.html
> Sent from the SPSSX Discussion mailing list archive at Nabble.com.
>
> =====================
> To manage your subscription to SPSSX-L, send a message to

> LISTSERV@.UGA

>  (not to SPSSX-L), with no body text except the
> command. To leave the list, send the command
> SIGNOFF SPSSX-L
> For a list of commands to manage subscriptions, send the command
> INFO REFCARD





-----
Please reply to the list and not to my personal email.
Those desiring my consulting or training services please feel free to
email me.
---
"Nolite dare sanctum canibus neque mittatis margaritas vestras ante porcos
ne forte conculcent eas pedibus suis."
Cum es damnatorum possederunt porcos iens ut salire off sanguinum cliff in
abyssum?"
--
View this message in context:
http://spssx-discussion.1045642.n5.nabble.com/Dates-tp5723585p5723599.html
Sent from the SPSSX Discussion mailing list archive at Nabble.com.

=====================
To manage your subscription to SPSSX-L, send a message to
[hidden email] (not to SPSSX-L), with no body text except the
command. To leave the list, send the command
SIGNOFF SPSSX-L
For a list of commands to manage subscriptions, send the command
INFO REFCARD
Please reply to the list and not to my personal email.
Those desiring my consulting or training services please feel free to email me.
---
"Nolite dare sanctum canibus neque mittatis margaritas vestras ante porcos ne forte conculcent eas pedibus suis."
Cum es damnatorum possederunt porcos iens ut salire off sanguinum cliff in abyssum?"
Reply | Threaded
Open this post in threaded view
|

Re: Dates

Rick Oliver-3
October 14, 1582 is a literary conceit. The Gregorian calendar skips 10 days between October 4 and October 15.  I don't know why midnight on October 15 is 86400 and not 0.

Rick Oliver
Senior Information Developer
IBM Business Analytics (SPSS)
E-mail: [hidden email]




From:        David Marso <[hidden email]>
To:        [hidden email],
Date:        12/11/2013 12:43 PM
Subject:        Re: Dates
Sent by:        "SPSSX(r) Discussion" <[hidden email]>




I stand corrected ;-)
Your 'may or may not have been Oct 4' is an interesting response.
Probably depends on where one was at the time.
http://www.timeanddate.com/calendar/gregorian-calendar.html
Sounds like a real flustercluck.

From the FM:
Date and time formats are both input and output formats. Like numeric
formats, each input format generates a default output format, automatically
expanded (if necessary) to accommodate display width. Internally, all date
and time format values are stored as a number of seconds: date formats
(e.g., DATE, ADATE, SDATE, DATETIME) are stored as the number of seconds
since *October 14, 1582
*
Which leads to the question was there an Oct 14, 1582 ?
Is the manual wrong?  OTOH: CEFGW ;-)



Rick Oliver wrote
> 86400 seconds = 1 day.
>
> If 86400 is 15-OCT-1582 00:00:00, then 0 is midnight of the day before
> that.
>
> Rick Oliver
> Senior Information Developer
> IBM Business Analytics (SPSS)
> E-mail:

> oliverr@.ibm

>
>
>
> From:   David Marso &lt;

> david.marso@

> &gt;
> To:

> SPSSX-L@.uga

> ,
> Date:   12/11/2013 11:56 AM
> Subject:        Re: Dates
> Sent by:        "SPSSX(r) Discussion" &lt;

> SPSSX-L@.uga

> &gt;
>
>
>
> My bad!  I *obviously* meant 86400 which is 00:00:00 on 0ct,15,1582.
> Where do you get the 'day before' in your previous post?
>
>
> Rick Oliver wrote
>> I think 46400 resolves to sysmis.
>>
>> data list free /x.
>> begin data
>> 46400 86399 86400
>> end data.
>> formats x (adate10).
>> list.
>>
>> Rick Oliver
>> Senior Information Developer
>> IBM Business Analytics (SPSS)
>> E-mail:
>
>> oliverr@.ibm
>
>>
>>
>>
>> From:   David Marso &lt;
>
>> david.marso@
>
>> &gt;
>> To:
>
>> SPSSX-L@.uga
>
>> ,
>> Date:   12/11/2013 11:39 AM
>> Subject:        Re: Dates
>> Sent by:        "SPSSX(r) Discussion" &lt;
>
>> SPSSX-L@.uga
>
>> &gt;
>>
>>
>>
>> If you want to get 'technical', 46400 resolves to Midnight Oct 15,1582
> so
>> I'm
>> not sure where "the day before" comes into your reckoning!
>>
>> Rick Oliver wrote
>>> Technically, the day before October 15, 1582, which may or may not be
>>> October 4. The lowest valid value is 86400, which resolves to October
>> 15,
>>> 1582.
>>>
>>> Rick Oliver
>>> Senior Information Developer
>>> IBM Business Analytics (SPSS)
>>> E-mail:
>>
>>> oliverr@.ibm
>>
>>>
>>>
>>>
>>> From:   David Marso &lt;
>>
>>> david.marso@
>>
>>> &gt;
>>> To:
>>
>>> SPSSX-L@.uga
>>
>>> ,
>>> Date:   12/11/2013 09:10 AM
>>> Subject:        Re: Dates
>>> Sent by:        "SPSSX(r) Discussion" &lt;
>>
>>> SPSSX-L@.uga
>>
>>> &gt;
>>>
>>>
>>>
>>> In fact # of seconds since Oct 15,1582 (the beginning of the Gregorian
>>> calendar).
>>> Kinda sucks for anthropologists ;-)))
>>>
>>>
>>> Rick Oliver wrote
>>>> An integer representing seconds since a date in the 16th century.
>>>>
>>>> Try:
>>>>
>>>> select if datevar=date.mdy(10,22,2012).
>>>>
>>>> Rick Oliver
>>>> Senior Information Developer
>>>> IBM Business Analytics (SPSS)
>>>> E-mail:
>>>
>>>> oliverr@.ibm
>>>
>>>>
>>>>
>>>>
>>>> From:   "Lombardo, Barbara" &lt;
>>>
>>>> BLombardo@
>>>
>>>> &gt;
>>>> To:
>>>
>>>> SPSSX-L@.uga
>>>
>>>> ,
>>>> Date:   12/11/2013 08:09 AM
>>>> Subject:        Dates
>>>> Sent by:        "SPSSX(r) Discussion" &lt;
>>>
>>>> SPSSX-L@.uga
>>>
>>>> &gt;
>>>>
>>>>
>>>>
>>>> Good morning,
>>>>
>>>> Using SPSS Version 22, have date fields = 10/22/2012, when I select
>> with
>>>> date field = 10/22/2012  it is not selecting.   What is behind that
>> date
>>>> that I am not seeing so that I can select dates, tried different
>>> formats??
>>>>
>>>> Thank You
>>>>
>>>>
>>>> Barbara Lombardo
>>>> Institutional Research
>>>> Camden County College
>>>> Blackwood NJ 08012
>>>> Office: 856-374-4961
>>>> Fax:    856-374-5016
>>>>
>>>> P Think before you print.
>>>> CONFIDENTIALITY: This e-mail (including any attachments) may contain
>>>> confidential, proprietary and privileged information, and unauthorized
>>>> disclosure or use is prohibited. If you received this e-mail in error,
>>>> please notify the sender and delete this e-mail from your system.
>>>>
>>>>
>>>>   ­­
>>>
>>>
>>>
>>>
>>>
>>> -----
>>> Please reply to the list and not to my personal email.
>>> Those desiring my consulting or training services please feel free to
>>> email me.
>>> ---
>>> "Nolite dare sanctum canibus neque mittatis margaritas vestras ante
>> porcos
>>> ne forte conculcent eas pedibus suis."
>>> Cum es damnatorum possederunt porcos iens ut salire off sanguinum cliff
>> in
>>> abyssum?"
>>> --
>>> View this message in context:
>>>
>>
>
http://spssx-discussion.1045642.n5.nabble.com/Dates-tp5723585p5723589.html
>>> Sent from the SPSSX Discussion mailing list archive at Nabble.com.
>>>
>>> =====================
>>> To manage your subscription to SPSSX-L, send a message to
>>
>>> LISTSERV@.UGA
>>
>>>  (not to SPSSX-L), with no body text except the
>>> command. To leave the list, send the command
>>> SIGNOFF SPSSX-L
>>> For a list of commands to manage subscriptions, send the command
>>> INFO REFCARD
>>
>>
>>
>>
>>
>> -----
>> Please reply to the list and not to my personal email.
>> Those desiring my consulting or training services please feel free to
>> email me.
>> ---
>> "Nolite dare sanctum canibus neque mittatis margaritas vestras ante
> porcos
>> ne forte conculcent eas pedibus suis."
>> Cum es damnatorum possederunt porcos iens ut salire off sanguinum cliff
> in
>> abyssum?"
>> --
>> View this message in context:
>>
>
http://spssx-discussion.1045642.n5.nabble.com/Dates-tp5723585p5723597.html
>> Sent from the SPSSX Discussion mailing list archive at Nabble.com.
>>
>> =====================
>> To manage your subscription to SPSSX-L, send a message to
>
>> LISTSERV@.UGA
>
>>  (not to SPSSX-L), with no body text except the
>> command. To leave the list, send the command
>> SIGNOFF SPSSX-L
>> For a list of commands to manage subscriptions, send the command
>> INFO REFCARD
>
>
>
>
>
> -----
> Please reply to the list and not to my personal email.
> Those desiring my consulting or training services please feel free to
> email me.
> ---
> "Nolite dare sanctum canibus neque mittatis margaritas vestras ante porcos
> ne forte conculcent eas pedibus suis."
> Cum es damnatorum possederunt porcos iens ut salire off sanguinum cliff in
> abyssum?"
> --
> View this message in context:
>
http://spssx-discussion.1045642.n5.nabble.com/Dates-tp5723585p5723599.html
> Sent from the SPSSX Discussion mailing list archive at Nabble.com.
>
> =====================
> To manage your subscription to SPSSX-L, send a message to

> LISTSERV@.UGA

>  (not to SPSSX-L), with no body text except the
> command. To leave the list, send the command
> SIGNOFF SPSSX-L
> For a list of commands to manage subscriptions, send the command
> INFO REFCARD





-----
Please reply to the list and not to my personal email.
Those desiring my consulting or training services please feel free to email me.
---
"Nolite dare sanctum canibus neque mittatis margaritas vestras ante porcos ne forte conculcent eas pedibus suis."
Cum es damnatorum possederunt porcos iens ut salire off sanguinum cliff in abyssum?"
--
View this message in context:
http://spssx-discussion.1045642.n5.nabble.com/Dates-tp5723585p5723608.html
Sent from the SPSSX Discussion mailing list archive at Nabble.com.

=====================
To manage your subscription to SPSSX-L, send a message to
[hidden email] (not to SPSSX-L), with no body text except the
command. To leave the list, send the command
SIGNOFF SPSSX-L
For a list of commands to manage subscriptions, send the command
INFO REFCARD


Reply | Threaded
Open this post in threaded view
|

Re: Dates

Robert Jones
Only a few countries adopted the Gregorian calendar in 1582, so while the date theoretically represented by zero would have been as Rick said, October 15th could be represented by several different values. !!