« first day (3704 days earlier)      last day (1242 days later) » 

11:39 AM
now = datetime.now()
date = now.strftime("%m/%d/%Y, %H:%M:%S")
f.write(date+"[aktifitas user]=> "+input+"\n")
    f = open("rekaman_aktifitas.txt","a")
    now = datetime.now()
    date = now.strftime("%m/%d/%Y, %H:%M:%S")
    f.write(date+"[aktifitas user]=> "+input+"\n")
    f.close()
 
 
2 hours later…
1:13 PM
Hello friends!
 
botler, join 7
 
I joined room 7, Boss.
 
 
1 hour later…
2:28 PM
I'm wondering if anyone here can help me with this.
I've gotten as far as converting all of my time data to seconds and then finding my mid_day and mid_night time in seconds thanks to spc but I can't quite get there after that. His 4 equations don't quite make sense to me.
Furthermore, If anyone can think of a better way of doing this based on my sunrise and sunset data please let me know!
0
Q: Calculate current time in percentage in relation to sunrise and sunset time?

MaximilianI think what I would like to achieve can best be described with the graph I've made below: I'm getting my sunrise and sunset data from an API that returns an object like this: { sunrise: "07:58:38", sunset: "15:52:46", day_length: "07:54:08", } I'm currently calculating whether it's curre...

 
 
3 hours later…
5:00 PM
OakBot Online.
 

« first day (3704 days earlier)      last day (1242 days later) »