关于“放假”、“休息” “调休” 的各种说法!

[分享]关于“放假”、“休息” “调休” 的各种说法!

time in lieu, Holiday、Vacation、Days off、Leave、Break、Furlough区别及用法

 

1.Time off in lieu (of overtime)
“调休”的意思,用法如:
 I would like to get 1 day off in lieu of the overtime I worked on Christmas day.
Can I have 3 hours off today in lieu of the 3hours of overtime I worked last night?
Do I get time off in lieu if I work overtime on the holiday?

 

2. Holiday
一般指法定假日,当老美说 the holidays/the holiday season,是说包括Christmas, Hanukkah(犹太人圣节), and New Year’s Day的这段假期。但不包括周末,如果是周末必须说on a weekend。

搭配  New Year Holiday新年假期
a legal holiday, a national holiday 法定假日
on holiday/on one’s holiday 休假中
half-holiday/half-day 半天休假
take a week’s holiday 一周的休假
have a holiday 休假、庆祝、休息
be home for the holiday 放假回家
package holiday 指由旅行社包办所有事宜的观光旅游

 

3. Vacation:
通常指停止工作或读书的假期,与天数无关。
如annual vacation, Christmas vacation。
搭配   summer vacation 暑假   winter vacation寒假
go on vacation/ take a vacation 自己放假

4. Days off
纯粹指不用上班,休息的日子或一段时间,例如周末,就是days off。
搭配:[一段时间+off] (通常用take/have当动词)
例句
He has a day off today.
She had two weeks off because she was ill.
I want to take a day off to see the doctor.
I got an afternoon off and went to the ball game. (请两小时假看球赛。)

 

5.Leave
亦可当假期,但通常必须是自己申请的休假。
如ask for leave (请假)grant leave (准假)overstay one’s leave (超假)sick leave (病假)maternity leave(产假)annual leave(年假)。
搭配:
on leave告假中
go home on leave请假回家
take one’s leave告辞
take French leave不告而别
例句:
I met her while I was on leave.
She is on six week’s paid leave. (她正在度六周有薪假期)
I get leave twice a year. = I have two leaves a year. (我一年有两次休假)

 

6. Break
短时间的休息,亦指课堂间的短暂休息或音乐会的中场休息。
搭配
have/take a break 休息一下
Give me a break! 饶了我吧
例句
There was a break in the concert.
Let’s have a coffee/tea break.
They usually go shopping during their lunch break.

 

7. Furlough
指军人、公务员、政府官员的休假,通常假期较长。
搭配
be home/go home on furlough 回家/回国休假
例句
He’s on nine month’s furlough.
He was given/granted two week’s furlough.
I have a furlough every two years.

Java中可以使用Jollyday和Holiday等第三方库来判断某一天是否是节假日、休息日和调休休息日。以下是使用Holiday库判断某一天是否是节假日、休息日和调休休息日的Java代码示例: ```java import com.github.dreamhead.moco.HttpServer; import com.github.dreamhead.moco.Runner; import com.github.dreamhead.moco.dsl.Http; import com.github.dreamhead.moco.runner.JsonRunner; import org.joda.time.LocalDate; import org.junit.AfterClass; import org.junit.BeforeClass; import org.junit.Test; import org.junit.runner.RunWith; import org.springframework.boot.test.context.SpringBootTest; import org.springframework.test.context.junit4.SpringRunner; import org.springframework.web.client.RestTemplate; import static com.github.dreamhead.moco.Moco.*; import static com.github.dreamhead.moco.Runner.runner; @RunWith(SpringRunner.class) @SpringBootTest public class HolidayCheckerTest { private static final String API_BASE_URL = "http://localhost:12306"; private static final RestTemplate restTemplate = new RestTemplate(); private static Runner runner; @BeforeClass public static void setUp() { HttpServer server = httpServer(12306); server.request(by(uri("/holiday"))) .response(MocoJsonRunner.withJsonPath("{holiday_type: 1}")); runner = runner(server); runner.start(); } @AfterClass public static void tearDown() { runner.stop(); } @Test public void testCheckHoliday() { LocalDate date = new LocalDate(2021, 10, 1); HolidayChecker holidayChecker = new HolidayChecker(API_BASE_URL, restTemplate); HolidayType holidayType = holidayChecker.checkHoliday(date); assert holidayType == HolidayType.HOLIDAY; } } ``` 其中,HolidayChecker类的实现可以参考Jollyday和Holiday库的官方文档。这里使用了Moco库来模拟API接口,以便进行单元测试。在测试中,我们使用了期望的JSON响应结果来模拟API的返回值,然后使用RestTemplate来调用API接口,最后判断返回的结果是否符合预期。
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值