The %1$tB formatting string in the code above tells the program to use the first argument and print out the full month name for the date object.
上面代码中的格式化字符串 %1$tB告诉程序使用第一个参数并打印date对象的完整月名。
This example demonstrates how to use <f:convertDateTime/> to ensure the user's birth date is convertible into a date object formatted as MM/yyyy (month/year).
这个例子展示了如何用 <f:convertDateTime/>确保用户的生日可以转换为格式为MM/yyyy(月 /年)的日期对象。
The date object is used to work with dates and times.
时间对象用来操作日期和时间。
Note: the date object will automatically hold the current date and time as its initial value!
注意:时间对象将自动把当前的日期和时间作为初始值!
The resulting Date object will have its time portion set to midnight, of course.
(当然,产生的Date对象将把它自己的时间部分设置为午夜时刻)。
And this example is similar to the preceding one except that this time I pass the Date object directly to the constructor.
并且这个例子与前例类似,唯一不同之处是我在这里将Date对象直接传递给构造函数。
The var and scope attributes are used to specify a scoped variable that -- as a result of <fmt:parseDate> -- the Date object is assigned to.
var和scope属性用来指定限定了作用域的变量(作为 <fmt:parseDate> 的结果),将把Date对象赋给该变量。
The var and scope attributes are used to specify a scoped variable that -- as a result of <fmt:parseDate> -- the Date object is assigned to.
var和scope属性用来指定限定了作用域的变量(作为 <fmt:parseDate> 的结果),将把Date对象赋给该变量。
应用推荐