time formats in summeries

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

time formats in summeries

Jürg Artho
Hi

In my date I have time-variables formatted as HH:MM (like 17:23 or
7:12). I like SPSS to always write summeries of these variables (i.e.
mean, stddev, etc. in frequencies, tables or output of statistical
tests) in the same format. Values of seconds greater than 30 should
round the minutes up, otherwise down. How can I do this?
Instead SPSS the summeries come in the form of HH:MM:SS,XXX (like
12:45:23,253).

Notice: I have the values of these time values also as minutes after
midnight in an other variable. I'm workings with SPSS 17.0.1 on a Mac
OS X.5.8

Thank you very much,

Juerg Artho



--
Universität Zürich
Sozialforschungsstelle
Jürg Artho
Binzmühlestrasse 14 / Box 15
8050 Zürich

Tel: 044 635 72 75
Fax: 044 635 7279

=====================
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: time formats in summeries

Bruce Weaver
Administrator
Jürg Artho wrote
Hi

In my date I have time-variables formatted as HH:MM (like 17:23 or
7:12). I like SPSS to always write summeries of these variables (i.e.
mean, stddev, etc. in frequencies, tables or output of statistical
tests) in the same format. Values of seconds greater than 30 should
round the minutes up, otherwise down. How can I do this?
Instead SPSS the summeries come in the form of HH:MM:SS,XXX (like
12:45:23,253).

Notice: I have the values of these time values also as minutes after
midnight in an other variable. I'm workings with SPSS 17.0.1 on a Mac
OS X.5.8

Thank you very much,

Juerg Artho

If you send the output to another dataset via OMS, you should be able to format it as desired, and then display it via REPORT or SUMMARIZE.

--
Bruce Weaver
bweaver@lakeheadu.ca
http://sites.google.com/a/lakeheadu.ca/bweaver/

"When all else fails, RTFM."

PLEASE NOTE THE FOLLOWING: 
1. My Hotmail account is not monitored regularly. To send me an e-mail, please use the address shown above.
2. The SPSSX Discussion forum on Nabble is no longer linked to the SPSSX-L listserv administered by UGA (https://listserv.uga.edu/).