回答編集履歴

1

修正

2021/01/15 04:01

投稿

kirara0048
kirara0048

スコア1399

test CHANGED
@@ -40,29 +40,29 @@
40
40
 
41
41
  ...: c = 24*60*60
42
42
 
43
- ...: (s - dt.datetime(2021, 1, 15, *endtime)).dt.total_seconds() % c - c
43
+ ...: (dt.datetime(2021, 1, 15, *endtime) - s).dt.total_seconds() % c
44
44
 
45
45
  Out[13]:
46
46
 
47
- 0 -79200.0
47
+ 0 79200.0
48
48
 
49
- 1 -75600.0
49
+ 1 75600.0
50
50
 
51
- 2 -72000.0
51
+ 2 72000.0
52
52
 
53
- 3 -68400.0
53
+ 3 68400.0
54
54
 
55
- 4 -64800.0
55
+ 4 64800.0
56
56
 
57
- 5 -61200.0
57
+ 5 61200.0
58
58
 
59
- 6 -57600.0
59
+ 6 57600.0
60
60
 
61
- 7 -54000.0
61
+ 7 54000.0
62
62
 
63
- 8 -50400.0
63
+ 8 50400.0
64
64
 
65
- 9 -46800.0
65
+ 9 46800.0
66
66
 
67
67
  dtype: float64
68
68