Prev | Current Page 131 | Next

L. McColl-Sylvester and F. Ponticelli

"Professional haXe and Neko"

M. or P.M.
%S Second as a number (0??“59)
%U Week of the year (0??“53), where week 1 has the
first Sunday
%w Weekday as a decimal (0??“6)
%W Week of the year (0??“53), where week 1 has the
first Monday
%x Standard date string
%X Standard time string
%y Year in decimal, without the century (0??“99)
%Y Year in decimal, with the century
%Z Time zone name %% a percent sign
getMonthDays()
getMonthDays accepts an instantiated Date object and returns the number of days available for the set
month. Therefore, if you were to pass the birthDate object to getMonthDays , it would return the value 30.
Chapter 3: Learning the Basics
55
Manipulating Data
Okay, so now you know how to represent basic data types in your applications, but what can you do
with that data? Well, some applications that deal with basic data types supply some form of processing
algorithms that modify the data in some way. This might be some simple math for calculating values or
perhaps assigning a template for laying out character data.


Pages:
119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143