Last change
on this file since 249 was
249,
checked in by hendrikvanantwerpen, 13 years ago
|
This one's for Subversion, because it's so close...
First widget (stripped down sequencer).
Seperated client and server code in two direcotry trees.
|
File size:
258 bytes
|
Line | |
---|
1 | d3.time.week = function(date) { |
---|
2 | (date = d3.time.day(date)).setDate(date.getDate() - date.getDay()); |
---|
3 | return date; |
---|
4 | }; |
---|
5 | |
---|
6 | d3.time.week.utc = function(date) { |
---|
7 | (date = d3.time.day.utc(date)).setUTCDate(date.getUTCDate() - date.getUTCDay()); |
---|
8 | return date; |
---|
9 | }; |
---|
Note: See
TracBrowser
for help on using the repository browser.