0

Can you tell the date of the Bengali New Year from this code?

# Determine the Bengali Calendar Year import datetime month = int(datetime.datetime.now().strftime('%m')) if month >= 4: date = int(datetime.datetime.now().strftime('%d')) if date >= 14: print('The Bengali Year right now is ' + str(int(datetime.datetime.now().strftime('%Y')) - 593) + '.') else: print('The Bengali Year right now is ' + str(int(datetime.datetime.now().strftime('%Y')) - 594) + '.')

18th May 2020, 2:56 AM
Md. Niamul Ahad Chowdhury
Md. Niamul Ahad Chowdhury - avatar
12 odpowiedzi
+ 2
Oh... sorry man, I misunderstood the question, lol
18th May 2020, 3:38 AM
4lx
4lx - avatar
0
Yes, the output of this code is "The Bengali Year rigth now is 1427."
18th May 2020, 3:12 AM
4lx
4lx - avatar
0
I×Am×Idiot Yes but can you tell the date?
18th May 2020, 3:14 AM
Md. Niamul Ahad Chowdhury
Md. Niamul Ahad Chowdhury - avatar
0
Nop, only the year
18th May 2020, 3:14 AM
4lx
4lx - avatar
0
I×Am×Idiot You gotta try harder
18th May 2020, 3:19 AM
Md. Niamul Ahad Chowdhury
Md. Niamul Ahad Chowdhury - avatar
0
What?😂
18th May 2020, 3:25 AM
4lx
4lx - avatar
0
What is the hipotetic ouput of the code?
18th May 2020, 3:27 AM
4lx
4lx - avatar
0
The output Is always the current Bengali Year. But can you say the date from the code.
18th May 2020, 3:29 AM
Md. Niamul Ahad Chowdhury
Md. Niamul Ahad Chowdhury - avatar
0
The full output of your code is "The Bengali Year rigth now is 1427." Without date
18th May 2020, 3:32 AM
4lx
4lx - avatar
0
Well, the date is always the same, that's why it doesn't show it in the output
18th May 2020, 3:33 AM
Md. Niamul Ahad Chowdhury
Md. Niamul Ahad Chowdhury - avatar
0
I asked for date of the new year btw, not the current date in the Bengali calendar
18th May 2020, 3:34 AM
Md. Niamul Ahad Chowdhury
Md. Niamul Ahad Chowdhury - avatar
0
Perhaps I will add a date feature sometime soon
18th May 2020, 3:35 AM
Md. Niamul Ahad Chowdhury
Md. Niamul Ahad Chowdhury - avatar