Apple WebObjects 3.5 Manual de usuario Pagina 208

  • Descarga
  • Añadir a mis manuales
  • Imprimir
  • Pagina
    / 218
  • Tabla de contenidos
  • MARCADORES
  • Valorado. / 5. Basado en revisión del cliente
Vista de pagina 207
Chapter 11 WebScript Programmer’s Quick Reference to Foundation Classes
208
Representing Dates as Strings
– description
Returns a string representation of the NSCalendarDate formatted
according to the NSCalendarDate’s default calendar format.
– descriptionWithCalendarFormat:
Returns a string representation of the receiver formatted according to
the provided format string.
– calendarFormat
Returns a string that indicates the receiver’s default calendar format.
See “Date Conversion Specifiers” (page 206) for more detailed
information on formats used by NSCalendarDate.
– setCalendarFormat:
Set the receiver’s default calendar format to the provided string.
Retrieving Date Elements
– dayOfWeek
Returns a number that indicates the NSCalendarDate’s day of the
week (0–6).
– dayOfMonth
Returns the NSCalendarDate’s day of the month (1–31).
– dayOfYear
Returns a number that indicates the NSCalendarDate’s day of the year
(1–366).
– dayOfCommonEra
Returns the NSCalendarDate’s number of days since the beginning of
the Common Era. The base year of the Common Era is 1 A.C.E.
(which is the same as 1 A.D.).
– monthOfYear
Returns a number that indicates the NSCalendarDate’s month of the
year (1–12).
– yearOfCommonEra
Returns the NSCalendarDate’s year value (including the century).
– hourOfDay
Returns the NSCalendarDate’s hour value (0–23).
Vista de pagina 207
1 2 ... 203 204 205 206 207 208 209 210 211 212 213 ... 217 218

Comentarios a estos manuales

Sin comentarios