Webtags (preserving history): Difference between revisions

m
→‎Differences between Cumulus 1 and Cumulus MX (Cumulus 3):: Bit more explanation on single versus custom.
m (→‎Differences between Cumulus 1 and Cumulus MX (Cumulus 3):: Bit more explanation on single versus custom.)
*#For example, in Delphi, "nn" means "minutes" for Cumulus 1, but "minutes" is "mm" for .Net in Cumulus MX.
*# e.g. the hour in 24-hour format, is "hh" in Delphi (Cumulus 1) and in .Net it's "HH" (Cumulus MX).
*You might be put off by references for .Net (Cumulus MX) to single/standard characters and custom modifiers:
 
*#For example ''<#MonthTempHD format="d">'' is a single character format modifier, therefore the 'd' acts as a standard modifier, and causes a date of 22 July 2014 for the highest temperature in the month to be returned in the standard short date format e.g. '22/07/2014' (exact contents for any one date vary by locale).
*The other change with the "format" parameter is the different way that .Net escapes characters that are not being used as format specifiers. In Delphi you put the 'verbatim' characters inside single quotes (Cumulus 1); in .Net you escape each verbatim character with backslashes (Cumulus MX).
*#Similarly ''<#MonthTempHD format="M">'' is a single character format modifier and therefore the 'M' acts as a standard modifier and causes the date for the highest temperature in the month to be returned in the standard day and month format e.g. '22 July' (exact contents for any one date vary by locale).
For full details see [http://sandaysoft.com/forum/viewtopic.php?f=27&t=12908 Cumulus MX forum], the following table is abridged. (I've abridged the table here for those who can't learn about standard strings and custom strings just for looking at date / time format).
*#Whilst ''<#metdate format="d M">'' is not a single character format modifier and therefore both the 'd' and the 'M' are interpreted as custom modifiers and cause the current date to be returned as a digit(s) for the day and a digit(s) month (in a without leading zeroes format) e.g. '6 7' would be returned for 6 July.
*The other change with the "format" parameter is the different way that .Net escapes characters that are not being used as format specifiers. In Delphi you can put the 'verbatim' characters inside single quotes (Cumulus 1); in .Net you can still use single quotes, but alternatively you can escape each verbatim character with backslashesa backslash as prefix (Cumulus MX).
For official full details see [http://sandaysoft.com/forum/viewtopic.php?f=27&t=12908 Cumulus MX forum], the following table is abridgedrevised for simplicity. (I've abridged the table here forso thoseI whodo can'tnot need to say any learnmore about standard stringscharacters and custom stringsmodifiers just for looking at date / time format).
 
== List of allowed modifiers ==
5,838

edits