This is from q function reference. I am trying to understand .z.Z Cananyone explain it a little in English?datetime
yearmonth
weekmm
ddhh
uu`ss$.z.Z"D"$"yyyy/mm/dd"in general:(where / can be /-. or blank)[yy]yymmddddMMM[yy]yyyyyy/[mm|MMM]/dd[mm|MMM]/dd/[yy]yy / \z 0dd/[mm|MMM]/[yy]yy / \z 1MMM is jan..dec
> datetime
yearmonth
weekmm
ddhh
uuss$.z.Zis simply casting local datetime(.z.Z) to datetime, year etc.\> "D"$"yyyy/mm/dd"\> in general:\> (where / can be /-. or blank)A string-ed date, like "2001 01 01" or "2001.01.01" or "2001-01-01"can be cast with "D" to a date (+ all the variations as shown)Be mindful of the \z valueq)"D"$"2009 01 01"2009.01.01q).z.Z2011.09.20T15:58:18.186q).z.z2011.09.20T14:58:19.466q)"D"$"2009 01 01"2009.01.01q)"D"$"2009-01-01"2009.01.01q)\z0q)"D"$"01/13/2001"2001.01.13For datetimes use Zq)"Z"$"01/13/2001 00:00:00.000"2001.01.13T00:00:00.000On Sep 20, 3:44?pm, dbtouch <dbto...> wrote:> This is from q function reference. I am trying to understand .z.Z Can> anyone explain it a little in English?>>
datetimeyear
monthweek
mmdd
hhuu
ss$.z.Z> “D”$“yyyy/mm/dd”> in general:> (where / can be /-. or blank)> [yy]yymmdd> ddMMM[yy]yy> yyyy/[mm|MMM]/dd> [mm|MMM]/dd/[yy]yy ?/ \z 0> dd/[mm|MMM]/[yy]yy ?/ \z 1> MMM is jan..dec</dbto…>
.z.Z / nowThanks a lot, JammyOn Sep 20, 11:03?am, “Jammy@Java” <manni.pa…> wrote:> > datetime
yearmonth
weekmm
ddhh
uuss$.z.Z>> is simply casting local datetime(.z.Z) to datetime, year etc.>> > "D"$"yyyy/mm/dd"> > in general:> > (where / can be /-. or blank)>> A string-ed date, like "2001 01 01" or "2001.01.01" or "2001-01-01"> can be cast with "D" to a date (+ all the variations as shown)>> Be mindful of the \z value>> q)"D"$"2009 01 01"> 2009.01.01> q).z.Z> 2011.09.20T15:58:18.186> q).z.z> 2011.09.20T14:58:19.466> q)"D"$"2009 01 01"> 2009.01.01> q)"D"$"2009-01-01"> 2009.01.01> q)\z> 0> q)"D"$"01/13/2001"> 2001.01.13>> For datetimes use Z>> q)"Z"$"01/13/2001 00:00:00.000"> 2001.01.13T00:00:00.000>> On Sep 20, 3:44?pm, dbtouch <dbto...> wrote:>>>>>>>> > This is from q function reference. I am trying to understand .z.Z Can> > anyone explain it a little in English?>> >
datetimeyear
monthweek
mmdd
hhuu
ss$.z.Z> > “D”$“yyyy/mm/dd”> > in general:> > (where / can be /-. or blank)> > [yy]yymmdd> > ddMMM[yy]yy> > yyyy/[mm|MMM]/dd> > [mm|MMM]/dd/[yy]yy ?/ \z 0> > dd/[mm|MMM]/[yy]yy ?/ \z 1> > MMM is jan..dec</dbto…></manni.pa…>