<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
  <channel>
    <title>OpenText Analytics Database 26.2.x – Date/time literals</title>
    <link>/en/sql-reference/language-elements/literals/datetime-literals/</link>
    <description>Recent content in Date/time literals on OpenText Analytics Database 26.2.x</description>
    <generator>Hugo -- gohugo.io</generator>
    
	  <atom:link href="/en/sql-reference/language-elements/literals/datetime-literals/index.xml" rel="self" type="application/rss+xml" />
    
    
      
        
      
    
    
    <item>
      <title>Sql-Reference: Time zone values</title>
      <link>/en/sql-reference/language-elements/literals/datetime-literals/time-zone-values/</link>
      <pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
      
      <guid>/en/sql-reference/language-elements/literals/datetime-literals/time-zone-values/</guid>
      <description>
        
        
        &lt;p&gt;OpenText™ Analytics Database attempts to be compatible with the SQL standard definitions for time zones, however, the SQL standard has an odd mix of date and time types and capabilities. Obvious problems are the following:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;
&lt;p&gt;Although the &lt;a href=&#34;../../../../../en/sql-reference/data-types/datetime-data-types/date/&#34;&gt;&lt;code&gt;DATE&lt;/code&gt;&lt;/a&gt; type does not have an associated time zone, the &lt;a href=&#34;../../../../../en/sql-reference/data-types/datetime-data-types/timetimetz/&#34;&gt;&lt;code&gt;TIME&lt;/code&gt;&lt;/a&gt; type can. Time zones in the real world have little meaning unless associated with a date as well as a time, since the offset can vary through the year with daylight-saving time boundaries.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;The database assumes your local time zone for any data type containing only date or time.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;The default time zone is specified as a constant numeric offset from UTC. It is therefore not possible to adapt to daylight-saving time when doing date/time arithmetic across DST boundaries.&lt;/p&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;To address these difficulties, OpenText recommends using Date/Time types that contain both date and time when you use time zones. OpenText recommends that you do &lt;em&gt;not&lt;/em&gt; use the type &lt;code&gt;TIME WITH TIME ZONE,&lt;/code&gt; even though it is supported it for legacy applications and for compliance with the SQL standard.&lt;/p&gt;
&lt;p&gt;Time zones and time-zone conventions are influenced by political decisions, not just earth geometry. Time zones around the world became somewhat standardized during the 1900&#39;s, but continue to be prone to arbitrary changes, particularly with respect to daylight-savings rules.&lt;/p&gt;
&lt;p&gt;The database currently supports daylight-savings rules over the time period 1902 through 2038, corresponding to the full range of conventional UNIX system time. Times outside that range are taken to be in &amp;quot;standard time&amp;quot; for the selected time zone, no matter what part of the year in which they occur.

&lt;table class=&#34;table table-bordered&#34; &gt;



&lt;tr&gt; 

&lt;th &gt;
Example&lt;/th&gt; 

&lt;th &gt;
Description&lt;/th&gt;&lt;/tr&gt;

&lt;tr&gt; 

&lt;td &gt;


&lt;code&gt;PST&lt;/code&gt;&lt;/td&gt; 

&lt;td &gt;


Pacific Standard Time&lt;/td&gt;&lt;/tr&gt;

&lt;tr&gt; 

&lt;td &gt;


&lt;code&gt;-8:00&lt;/code&gt;&lt;/td&gt; 

&lt;td &gt;


ISO-8601 offset for PST&lt;/td&gt;&lt;/tr&gt;

&lt;tr&gt; 

&lt;td &gt;


&lt;code&gt;-800&lt;/code&gt;&lt;/td&gt; 

&lt;td &gt;


ISO-8601 offset for PST&lt;/td&gt;&lt;/tr&gt;

&lt;tr&gt; 

&lt;td &gt;


&lt;code&gt;-8&lt;/code&gt;&lt;/td&gt; 

&lt;td &gt;


ISO-8601 offset for PST&lt;/td&gt;&lt;/tr&gt;

&lt;tr&gt; 

&lt;td &gt;


&lt;code&gt;zulu&lt;/code&gt;&lt;/td&gt; 

&lt;td &gt;


Military abbreviation for UTC&lt;/td&gt;&lt;/tr&gt;

&lt;tr&gt; 

&lt;td &gt;


&lt;code&gt;z&lt;/code&gt;&lt;/td&gt; 

&lt;td &gt;


Short form of &lt;code&gt;zulu&lt;/code&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;
&lt;/p&gt;

      </description>
    </item>
    
    <item>
      <title>Sql-Reference: Day of the week names</title>
      <link>/en/sql-reference/language-elements/literals/datetime-literals/day-of-week-names/</link>
      <pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
      
      <guid>/en/sql-reference/language-elements/literals/datetime-literals/day-of-week-names/</guid>
      <description>
        
        
        &lt;p&gt;The following tokens are recognized as names of days of the week:

&lt;table class=&#34;table table-bordered&#34; &gt;



&lt;tr&gt; 

&lt;th &gt;
Day&lt;/th&gt; 

&lt;th &gt;
Abbreviations&lt;/th&gt;&lt;/tr&gt;

&lt;tr&gt; 

&lt;td &gt;


SUNDAY&lt;/td&gt; 

&lt;td &gt;


SUN&lt;/td&gt;&lt;/tr&gt;

&lt;tr&gt; 

&lt;td &gt;


MONDAY&lt;/td&gt; 

&lt;td &gt;


MON&lt;/td&gt;&lt;/tr&gt;

&lt;tr&gt; 

&lt;td &gt;


TUESDAY&lt;/td&gt; 

&lt;td &gt;


TUE, TUES&lt;/td&gt;&lt;/tr&gt;

&lt;tr&gt; 

&lt;td &gt;


WEDNESDAY&lt;/td&gt; 

&lt;td &gt;


WED, WEDS&lt;/td&gt;&lt;/tr&gt;

&lt;tr&gt; 

&lt;td &gt;


THURSDAY&lt;/td&gt; 

&lt;td &gt;


THU, THUR, THURS&lt;/td&gt;&lt;/tr&gt;

&lt;tr&gt; 

&lt;td &gt;


FRIDAY&lt;/td&gt; 

&lt;td &gt;


FRI&lt;/td&gt;&lt;/tr&gt;

&lt;tr&gt; 

&lt;td &gt;


SATURDAY&lt;/td&gt; 

&lt;td &gt;


SAT&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;
&lt;/p&gt;

      </description>
    </item>
    
    <item>
      <title>Sql-Reference: Month names</title>
      <link>/en/sql-reference/language-elements/literals/datetime-literals/month-names/</link>
      <pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
      
      <guid>/en/sql-reference/language-elements/literals/datetime-literals/month-names/</guid>
      <description>
        
        
        &lt;p&gt;The following tokens are recognized as names of months:&lt;/p&gt;

&lt;table class=&#34;table table-bordered&#34; &gt;



&lt;tr&gt; 

&lt;th &gt;
Month&lt;/th&gt; 

&lt;th &gt;
Abbreviations&lt;/th&gt;&lt;/tr&gt;

&lt;tr&gt; 

&lt;td &gt;


JANUARY&lt;/td&gt; 

&lt;td &gt;


JAN&lt;/td&gt;&lt;/tr&gt;

&lt;tr&gt; 

&lt;td &gt;


FEBRUARY&lt;/td&gt; 

&lt;td &gt;


FEB&lt;/td&gt;&lt;/tr&gt;

&lt;tr&gt; 

&lt;td &gt;


MARCH&lt;/td&gt; 

&lt;td &gt;


MAR&lt;/td&gt;&lt;/tr&gt;

&lt;tr&gt; 

&lt;td &gt;


APRIL&lt;/td&gt; 

&lt;td &gt;


APR&lt;/td&gt;&lt;/tr&gt;

&lt;tr&gt; 

&lt;td &gt;


MAY&lt;/td&gt; 

&lt;td &gt;


MAY&lt;/td&gt;&lt;/tr&gt;

&lt;tr&gt; 

&lt;td &gt;


JUNE&lt;/td&gt; 

&lt;td &gt;


JUN&lt;/td&gt;&lt;/tr&gt;

&lt;tr&gt; 

&lt;td &gt;


JULY&lt;/td&gt; 

&lt;td &gt;


JUL&lt;/td&gt;&lt;/tr&gt;

&lt;tr&gt; 

&lt;td &gt;


AUGUST&lt;/td&gt; 

&lt;td &gt;


AUG&lt;/td&gt;&lt;/tr&gt;

&lt;tr&gt; 

&lt;td &gt;


SEPTEMBER&lt;/td&gt; 

&lt;td &gt;


SEP, SEPT&lt;/td&gt;&lt;/tr&gt;

&lt;tr&gt; 

&lt;td &gt;


OCTOBER&lt;/td&gt; 

&lt;td &gt;


OCT&lt;/td&gt;&lt;/tr&gt;

&lt;tr&gt; 

&lt;td &gt;


NOVEMBER&lt;/td&gt; 

&lt;td &gt;


NOV&lt;/td&gt;&lt;/tr&gt;

&lt;tr&gt; 

&lt;td &gt;


DECEMBER&lt;/td&gt; 

&lt;td &gt;


DEC&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;


      </description>
    </item>
    
    <item>
      <title>Sql-Reference: Interval literal</title>
      <link>/en/sql-reference/language-elements/literals/datetime-literals/interval-literal/</link>
      <pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
      
      <guid>/en/sql-reference/language-elements/literals/datetime-literals/interval-literal/</guid>
      <description>
        
        
        &lt;p&gt;A literal that represents a time span.&lt;/p&gt;
&lt;h2 id=&#34;syntax&#34;&gt;Syntax&lt;/h2&gt;
&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;[ @ ] [-] { &lt;span class=&#34;code-variable&#34;&gt;quantity&lt;/span&gt; &lt;span class=&#34;code-variable&#34;&gt;&lt;a href=&#34;../../../../../en/sql-reference/language-elements/literals/datetime-literals/interval-literal/interval-subtype-units/#&#34;&gt;subtype-unit&lt;/a&gt;&lt;/span&gt; }[...] [ AGO ]
&lt;/code&gt;&lt;/pre&gt;&lt;h2 id=&#34;parameters&#34;&gt;Parameters&lt;/h2&gt;
&lt;dl&gt;
&lt;dt&gt;&lt;code&gt;@&lt;/code&gt;&lt;/dt&gt;
&lt;dd&gt;Ignored&lt;/dd&gt;
&lt;dt&gt;&lt;code&gt;- (minus)&lt;/code&gt;&lt;/dt&gt;
&lt;dd&gt;Specifies a negative interval value.&lt;/dd&gt;
&lt;dt&gt;&lt;em&gt;&lt;code&gt;quantity &lt;/code&gt;&lt;/em&gt;&lt;/dt&gt;
&lt;dd&gt;Integer &lt;a href=&#34;../../../../../en/sql-reference/language-elements/literals/number-type-literals/&#34;&gt;numeric constant&lt;/a&gt;&lt;/dd&gt;
&lt;dt&gt;&lt;a href=&#34;../../../../../en/sql-reference/language-elements/literals/datetime-literals/interval-literal/interval-subtype-units/&#34;&gt;&lt;em&gt;&lt;code&gt;subtype-unit&lt;/code&gt;&lt;/em&gt;&lt;/a&gt;&lt;/dt&gt;
&lt;dd&gt;See &lt;a href=&#34;../../../../../en/sql-reference/language-elements/literals/datetime-literals/interval-literal/interval-subtype-units/#&#34;&gt;Interval subtype units&lt;/a&gt; for valid values. Subtype units must be specified for &lt;a href=&#34;../../../../../en/sql-reference/language-elements/literals/datetime-literals/interval-literal/interval-subtype-units/#YearMonthSubtype&#34;&gt;year-month&lt;/a&gt; intervals; they are optional for &lt;a href=&#34;../../../../../en/sql-reference/language-elements/literals/datetime-literals/interval-literal/interval-subtype-units/#DayTimeSubtypes&#34;&gt;day-time&lt;/a&gt; intervals.&lt;/dd&gt;
&lt;dt&gt;&lt;code&gt;AGO&lt;/code&gt;&lt;/dt&gt;
&lt;dd&gt;Specifies a negative interval value. &lt;code&gt;AGO&lt;/code&gt; and - (minus) are synonymous.&lt;/dd&gt;
&lt;/dl&gt;
&lt;h2 id=&#34;notes&#34;&gt;Notes&lt;/h2&gt;
&lt;ul&gt;
&lt;li&gt;
&lt;p&gt;The amounts of different units are implicitly added up with appropriate sign accounting.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;The boundaries of an interval constant are:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;
&lt;p&gt;&lt;code&gt;9223372036854775807 usec&lt;/code&gt; to &lt;code&gt;-9223372036854775807 usec&lt;/code&gt;&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;&lt;code&gt;296533 years 3 mons 21 days 04:00:54.775807&lt;/code&gt; to &lt;code&gt;-296533 years -3 mons -21 days -04:00:54.775807&lt;/code&gt;&lt;/p&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;The range of an interval constant is 
&lt;code&gt;+/– 2&lt;sup&gt;63&lt;/sup&gt; – 1&lt;/code&gt; microseconds.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;The interval fields are additive and accept large floating-point numbers.&lt;/p&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;h2 id=&#34;examples&#34;&gt;Examples&lt;/h2&gt;
&lt;p&gt;See &lt;a href=&#34;../../../../../en/sql-reference/data-types/datetime-data-types/interval/specifying-interval-input/#&#34;&gt;Specifying interval input&lt;/a&gt;.&lt;/p&gt;

      </description>
    </item>
    
  </channel>
</rss>
