The following code will stub the system class Date to always return the same date, say Ground Hog Day, as in Listing 6.
下面的代码对系统类Date 进行stub 以便总是返回相同的日期,比如GroundHog Day,如清单 6 所示。
Last semester I took an archaeology class and we spent a lot of time studying ways to date things.
上学期我上了一门考古学的课,在这门课上我们花了很多时间来研究确定物件日期的方法。
You will first create a new project and a class that will implement a simple service that returns the system date and time of the server on which the service is running.
您首先将创建一个新的项目和一个类,这个类将实现一个简单的服务:返回服务运行所在服务器的系统日期和时间。
If you do not have a mapping model, then the Date class will be generated inside a folder called Package1.
如果没有映射模型,那么date类将会生成在一个名为Package1的文件夹内。
Figure 8 (larger image) shows the result of dragging and dropping the term Health Status Date to add a new attribute to the Customer class.
图8(参见大图)展示了拖放术语HealthStatusDate来向customer类添加一个新属性的结果。
The API methods I'll show you for doing date calculations all return a new instance of the corresponding Joda class, leaving the original instance unchanged.
我将向您展示的用于处理日期计算的API方法全部返回一个对应joda类的新实例,同时保持原始实例不变。
This isn't a major issue unless you are using dates, as ruby's date class is very slow to instantiate.
这并不是一个主要的问题,除非你使用的类型是日期型,因为ruby的日期型的数据实例化起来非常慢。
But some table fields (e.g., table 3: Vehicle Date of Purchase) are not in our corresponding class because fields like this are not relevant to the Reserve a Vehicle use case.
但有些表的字段(如表3:车辆:DateofPurchase(购买日期))不在相应的类中,因为这类字段与预约车辆用例无关。
So this class first gets the current date and then calculates previous 7 closest date (including current) and passes directories names back to Oozie.
这样,这个类首先会获得当前日期,然后再获得离现在最近的7个日期(包括今天),然后把目录名称传递回给Oozie。
To be useful, a toString implementation needs to be kept up to date as fields are added and removed from the class, and I find this step too much trouble to be worthwhile in general.
为了更有用些,当从类中添加或删除字段时,toString实现需要保持最新。而我发现总的来说这一步太麻烦而不值得实现。
This class supports changing the date by different settings via constants in the Calendar class; for example, Calendar.WEEK_OF_MONTH to change the date one week at a time.
该类支持通过将 Calendar类中的常数设置为不同的值来更改日期;例如, Calendar.WEEK_OF_MONTH每次将日期更改一周。
It USES the class name Date, which is a fairly generic class name and could very well exist in other places in our code.
它使用类名Date,这是一个非常通用的类名,并且可以很好地切入到代码中的其他位置。
An instance of the Machine class represents a computer to which tests and a tests due date are assigned. Take a look at the Machine class, shown in Listing 2.
machine类的实例表示要分配测试和测试到期日期的计算机机器。
org.apache.derby.demo.validators — The ForwardDates is a custom JSF validator class, which ensures the date a flight is booked is either today or a future date.
validators ——ForwardDates是定制JSF验证器类,确保预订的航班日期是今天或未来日期。
All you would have to do is to be sure to keep the bookpoolHelper class up to date as you add more test case scripts and cover more application functionality.
所有您必须做的就是,在您增加更多的测试脚本和覆盖更多的程序功能时,确保更新bookpoolhelper类。
Using the material you've learned in class, you'll be expected to answer some big questions for an 8-page final paper that you'll turn in at a date to be assigned.
运用你在课堂上学到的材料,在8页论文中回答某些大问题,然后准时交给我。
Entries and objects will set their published date to the current date (using the PHP time function) by default. Listing 6 shows the base class for entries.
项和对象默认将它们的发布日期设置为当前时间(使用PHPtime函数)。
This will not only keep the study habit alive but also keep you up to date on your class assignments and projects.
这不仅让你保持学习习惯,还使你了解学习任务和计划。
Be sure to label each video or audio tape with your program name, class name, date, and the content on each tape.
每个錄影或是錄音都需要其上贴注标签课程名称、课别、种類、日期及内容。
The only other mapping in the Order class is a simple property mapping for the Date property. We will not spend time on that here, so you can close the Order mapping file.
Order类中现在只剩一一个简单类型,Date,我们不会再花费时间,现在你可以关闭Order类的映射文件。
To make things easier, SimpleJPA provides the base class IdedTimestampedBase, which manages the domain object's id property, as well as the date attributes created and updated.
为了简化,SimpleJPA提供了基本的类idedtimestampedbase,它负责管理域对象的ID属性,以及日期属性created和updated。
Examples: archival date, draft or version number, record item identifier, dossier identifier, class code, registration number, name of creator.
比如:存档日期、草稿或版本编号、文件条目鉴定者、卷宗鉴定者、类别代号、登记号、生成者名称等。
Most of our clientele was well-off retirees and 30-something recently divorced men hoping to get a date with someone coming in after a yoga class.
我们的大多数客户是富裕的退休人员和30岁刚离婚并希望与一个刚上完瑜伽课的女人约会的男人。
This will not only keep the study habit alive but also keep you up to date on your class assignments.
这样不仅能保持良好的学习习惯,而且还能帮你跟上课堂进度。
Due Date: In class on the days of Lectures 25 and 26 and one additional day during the final exam week.
缴交报告期限:在第25和26堂课的课堂上以及期末考周缴交。
Of course, I can't help you if your performance plummets after the class drop date.
当然,如果在退选时间过后,你的成绩急剧下滑,我就无能为力。
If need to extend the leave, the applicant should explain before the expiry date, and apply prolong leave with relevant certifications, or he will get "Absent Class" treatment.
第十一条膍需延长假期者,在请假期满以前说明理由,持有关证明申请续假,否则按旷课处理。
During the final examination, some pupils were so eager to answer the questions that they forgot to fill in the blanks for the class, name, date, etc. on the fornt page of the examination paper.
期末考试期间,一些学生急于答题,因此忘记要在试卷的空白处填班级,姓名,日期等。
During the final examination, some pupils were so eager to answer the questions that they forgot to fill in the blanks for the class, name, date, etc. on the fornt page of the examination paper.
期末考试期间,一些学生急于答题,因此忘记要在试卷的空白处填班级,姓名,日期等。
应用推荐