This content describes Snap 11. For Snap 10, the equivalent page will be in Snap 10 help

Next Topic

Book Contents

Book Index

Question Time Variable

Question Time Variables are used when the information entered on to the questionnaire is of a time format, usually used for such questions as:

What time did you arrive? :

Snap recognises a variety of time formats, as the following examples show:

23:59:59 or 23:59 or 2300 hours or 23 hours or 11:59:59 pm or 11:59 pm or 11 o'clock. There is more information on the format of time variables over the page.

Question Time Variables are used to capture time data without classification. A single code will be created containing all valid responses. Other variable types, such as derived quantity and derived single variables, can be used to perform calculations on any question time variable.

The fields for a Question Time Variable apply the following rules:

Length

A number between 1 and 15 to represent the length of the field being captured. The default value is set to 15. The source field is automatically updated after moving out of the length field.

Number of Codes

Only one valid code: OK

Valid label and value

The valid label is pre-set to Valid, although this can be changed by accessing Tailor | Analysis and selecting [Labels]. The value can be left blank so that any figure which follows the time format may be entered: Snap will check the format of any time to ensure that it meets the criteria as described in the examples below. If only a certain range of times is valid (such as between 12.30pm and 1.30pm), this can be set up in the Values field of the OK code. Snap will check the times as they are entered in the Data window to ensure that each one is of a valid format and each one is within the range specified.

You can perform time calculations on Time Variables. Times are converted to seconds, and results are given in seconds. To get a more useful block of time (such as number of hours) divide the answer given by 60 to calculate the number of minutes and then by 60 again (if the number is greater than 60) in order to discover the hours. Whenever you end up with numbers after a decimal point, for example 12.25 hours, remember that the .25 is not 25 minutes but a quarter of an hour: in other words 15 minutes.

The table on the right shows how many seconds there are in a number of time slots such as one minute, one hour, a 12 hour period and one day (twenty four hour period).

Corresponding time in other units

Number of Seconds

1 minute

60

5 minutes

300

15 minutes

900

half an hour

1800

1 hour

3600

3 hours

10800

6 hours

21600

½ day (12 hours)

43200

1 day (24 hours)

86400

 

For more information on using the Question Time Variable in Analysis, look in manual 4, “Analysis of Results”.

See Also

Question Multiple Variable

Question Single Variable

Question Literal Variable

Question Quantity Variable

Question Date Variable