12.07.2015 Views

Oracle SQL Developer

Oracle SQL Developer

Oracle SQL Developer

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Setting up the Globalization Support Environment11.2.4.2.2 NLS_TIMESTAMP_TZ_FORMAT NLS_TIMESTAMP_TZ_FORMAT defines thedefault date format for the TIMESTAMP and TIMESTAMP WITH LOCAL TIME ZONEdata types. It is used with the TO_CHAR and TO_TIMESTAMP_TZ functions. The NLS_TERRITORY parameter determines the default value of NLS_TIMESTAMP_TZ_FORMAT. The value of NLS_TIMESTAMP_TZ_FORMAT can be any valid datetimeformat mask.The format value must be surrounded by quotation marks. For example:NLS_TIMESTAMP_TZ_FORMAT = 'YYYY-MM-DD HH:MI:SS.FF TZH:TZM'In Example 11–7 the TO_TIMESTAMP_TZ function uses the format value that wasspecified for NLS_TIMESTAMP_TZ_FORMAT.Example 11–7Setting NLS_TIMESTAMP_TZ_FORMAT-- display August 20, 2005 using the format of NLS_TIMPSTAMP_TZ_FORMATSELECT TO_TIMESTAMP_TZ('2005-08-20, 05:00:00.55 America/Los_Angeles','yyyy-mm-dd hh:mi:ss.ff TZR') "TIMESTAMP_TZ Format" FROM DUAL;You should see output similar to the following:TIMESTAMP_TZ Format--------------------------------------------------------20-AUG-05 05.00.00.550000000 AM AMERICA/LOS_ANGELES11.2.5 Calendar DefinitionsThis topic includes the following topics:■■Calendar FormatsNLS_CALENDAR11.2.5.1 Calendar FormatsThe following calendar information is stored for each territory:■ First Day of the Week on page 11-10■ First Calendar Week of the Year on page 11-10■ Number of Days and Months in a Year on page 11-11■ First Year of Era on page 11-1111.2.5.1.1 First Day of the Week Some cultures consider Sunday to be the first day of theweek. Others consider Monday to be the first day of the week. A German calendarstarts with Monday.The first day of the week is determined by the NLS_TERRITORY parameter.11.2.5.1.2 First Calendar Week of the Year Some countries use week numbers forscheduling, planning, and bookkeeping. <strong>Oracle</strong> supports this convention. In the ISOstandard, the week number can be different from the week number of the calendaryear. For example, 1st Jan 1988 is in ISO week number 53 of 1987. An ISO weekalways starts on a Monday and ends on a Sunday.To support the ISO standard, <strong>Oracle</strong> provides the IW date format element. It returnsthe ISO week number.The first calendar week of the year is determined by the NLS_TERRITORY parameter.11-10 <strong>SQL</strong> <strong>Developer</strong> Online Help

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!