home *** CD-ROM | disk | FTP | other *** search
- TABLE OF CONTENTS
-
- DateString/--background--
- DateString/MUIA_DateString_DateFormat
- DateString/--background--
-
- NAME
- DateString -- ... (V12)
-
- FUNCTION
- DateString class that allows the user to make his/her input in
- over 40 know formats independent of the given format template.
- Weekday and month names can also be given in any known language.
- Drag&Drop is supported as well.
-
- SEE ALSO
- MCC_Date.doc
- DateString/MUIA_DateString_DateFormat
-
- NAME
- MUIA_DateString_DateFormat, STRPTR [ISG] -- Date format string (V12)
-
- SYNOPSIS
- MUIA_DateString_DateFormat, "%d.%m.%Y",
-
- \*result =*\ set(obj,MUIA_DateString_DateFormat,dfs);
- \*result =*\ get(obj,MUIA_DateString_DateFormat,&dfs);
-
- FUNCTION
- The MUIA_DateString_DateFormat attribute of a DateString object can
- be used to define a date format.
- Defaults to system Locale->loc_ShortDateFormat or "%Y-%m-%d" if no
- locale can be found.
-
- INPUTS
- dfs - Date format string
-
- RESULT
- dfs - Date format string
-
- NOTES
- Syntax of Amiga compatible % commands:
- %d : Day number with leading 0s
- %e : Day number with leading spaces
- %m : Month number with leading 0s
- %h : Abbreviated month name
- %b : Abbreviated month name
- %B : Month name
- %y : Year using two digits with leading 0s
- %Y : Year using four digits with leading 0s
- %j : Julian date
- %w : Weekday number
- %a : Abbreviated weekday name
- %A : Weekday name
- %U : Week number, taking Sunday as first day of week
- %W : Week number, taking Monday as first day of week
- %x : Same as "%m/%d/%y"
- %D : Same as "%m/%d/%y"
-
- Syntax of % commands:
- %Ddf : Day with leading 0s
- %Ddv : Day without leading 0s
- %DDf : Day within the year with leading 0s
- %DDv : Day within the year without leading 0s
- %Dmf : Month with leading 0s
- %Dmv : Month without leading 0s
- %Dms : Month string
- %Dma : Abbreviated month string
- %Dy2f : 2-digit year with leading 0s
- %Dy2v : 2-digit year without leading 0s
- %Dy4f : 4-digit year with leading 0s
- %Dy4v : 4-digit year without leading 0s
- %Dys : Scaliger year
- %Dj : JD date
- %DJ : MJD date
- %Dwn : Weekday number (1-7)
- %Dws : Weekday string
- %Dwa : Abbreviated weekday string
- %DWf : Weeknumber with leading 0s
- %DWv : Weeknumber without leading 0s
- %DMf : Age of the moon (0-30 ?) with leading 0s
- %DMv : Age of the moon (0-30 ?) without leading 0s
-
- BUGS
- No known bugs.
-
- SEE ALSO
-