:
> Thank you all.
>
> Thank you # madhusudan (I got on idea through you shared the code)
>
> On Fri, Jul 28, 2023, 8:16 PM Madhusudhan Reddy
> wrote:
>
>> To get Logout time based on login time,
>>
>> login time = some thing
>>
>> logout time
Thank you all.
Thank you # madhusudan (I got on idea through you shared the code)
On Fri, Jul 28, 2023, 8:16 PM Madhusudhan Reddy
wrote:
> To get Logout time based on login time,
>
> login time = some thing
>
> logout time = login time + 8 hours
>
> use datetime timed
o have `last_login` and
`last_logout` object which is available to you when using
`django.contrib.auth`
<https://reubensunday.com/#contact>
*Reuben Sunday*
Contact For Further Assistance <https://reubensunday.com/#contact>
On Fri, Jul 28, 2023 at 3:46 PM Madhusudhan Reddy
wrote:
&g
for better understanding
[image: Screenshot from 2023-07-28 20-18-37.png]
On Fri, 28 Jul 2023 at 20:15, Madhusudhan Reddy
wrote:
> To get Logout time based on login time,
>
> login time = some thing
>
> logout time = login time + 8 hours
>
> use datetime timed
To get Logout time based on login time,
login time = some thing
logout time = login time + 8 hours
use datetime timedelta module in python,
>>> CODE <<<
from datetime import datetime, timedelta
login_time = datetime.now()
logout_time = login_time + timedelta
look for session : if session expires you have to log in again.
It is the same for all apps irrespective of python.
Thank you,
Annadatha.
On Fri, Jul 28, 2023 at 8:05 PM Prashanth Patelc
wrote:
> Hi all,
>
> How to get logout time based on login time in python?
>
> I'm stor
Please describe the problem properly bro.
we are not understanding
On Fri, 28 Jul 2023 at 20:05, Prashanth Patelc
wrote:
> Hi all,
>
> How to get logout time based on login time in python?
>
> I'm storing hour in one column
> Eg ; hour
> 8
> Based on 8 Calc
Hi all,
How to get logout time based on login time in python?
I'm storing hour in one column
Eg ; hour
8
Based on 8 Calculate logout time
My login time 10:00:00
I need 6: 00:00 (based 8)
--
You received this message because you are subscribed to the Google Groups
"Django
8 matches
Mail list logo