beautypg.com

Examples, Appendix c: date formatting – Google Search Appliance Protocol Reference User Manual

Page 108

background image

Google Search Appliance: Search Protocol Reference

Appendices

108

Examples

Appendix C: Date Formatting

The search appliance recognizes dates in most reasonable formats. However, dates that only mention
the year (YY or YYYY), such as 2008, are not used. For dates in the format month year, the date is
assumed to be the first of the month. The search appliance currently recognizes most Latin1 month
names, but not Chinese, Japanese, or Korean month names.

Original String

URL-Encoded String

chicken -teriyaki

chicken+%2Dteriyaki

admission form site:www.stanford.edu

admission+form+site%3Awww.stanford.edu

Original String

Doubly URL-Encoded String

William Shakespeare

William%2BShakespeare

admission form
site:www.stanford.edu

admission%2Bform%2Bsite%253Awww.stanford.edu

Format

Description

Example

YYYY

All digits in a year

2008

YY

Last two digits of a year

08

YR

All four digits or only the last two digits of the year

YY, YYYY

M

Month represented by one or two digits

9 or 09

D

Day of the month represented by one or two digits

7 or 07

MM

Month represented by two digits

04

DD

Day of the month represented by two digits

07

WK

Day of the week

Monday or Mon

MON

Month

March or Mar

O

The relationship of local time to Universal Time (UT).

O is used in a standard date format that follows ISO/IEC 8824.

O is denoted by a plus sign (+), a minus sign (-), or the letter Z. A
minus sign indicates that the local time is ahead of UT; a plus
sign, behind UT; and the letter Z, equal to UT.

Pacific Standard
Time would be a
minus sign because
it is ahead of UT.