时间/日期转换年/周 - >日月年 [英] Time/Date conversion year/week -> day/month/year
本文介绍了时间/日期转换年/周 - >日月年的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
好。听起来很简单,但可能很复杂。
我有$周(这是一年中的一周1-52)我有$ year。
我希望在给定的$ week和$ year中获得星期六的那一天,所以我想要返回:
$ day(是一个月中的某一天,也就是他给出的星期六) ,$ month(0-12个月)和$ year。
至少有一点大脑取笑我。任何想法?
Okay. Simple as it sounds, but possibly complex.
I have $week (which is the week in a year 1-52) and I have $year.
I want to get the day of the saturday in the given $week and $year, so i want returned:
$day (being day of month, will be the saturday of he origonal given week), $month (the month 0-12) and $year.
Bit of a brain tease for me atleast. Any Idea''s?
推荐答案
周(这是一年中的一周1-52)我有
week (which is the week in a year 1-52) and I have
一年。
我希望在给定的
year.
I want to get the day of the saturday in the given
周获得星期六的那一天和
week and
这篇关于时间/日期转换年/周 - >日月年的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文