Skip to content
Toggle navigation
Toggle navigation
This project
Loading...
Sign in
Luciano Barletta
/
Pruebas-RTO
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Network
Compare
Branches
Tags
Commit ddc01f5e
authored
2023-10-18 08:37:21 -0300
by
Juan Pablo dure
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
Muevo delta time a configuraccion
1 parent
2646905b
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
4 deletions
configuracion.py
fosadiaria.py
configuracion.py
View file @
ddc01f5
carpetaDescargas
=
"/home/juan/Descargas/"
carpetaDescargas
=
"/home/juan/Descargas/"
cabezaeraDescargas
=
"Planilla_Diaria-54"
cabezaeraDescargas
=
"Planilla_Diaria-54"
grepfile
=
"/home/juan/Pruebas-RTO/grep.sh"
\ No newline at end of file
\ No newline at end of file
grepfile
=
"/home/juan/Pruebas-RTO/grep.sh"
deltaminutos
=
7
delataPositivoNegativo
=
"-"
\ No newline at end of file
\ No newline at end of file
fosadiaria.py
View file @
ddc01f5
import
datetime
import
datetime
from
time
import
sleep
from
time
import
sleep
import
os
,
subprocess
import
os
,
subprocess
,
configuracion
from
configuracion
import
*
from
configuracion
import
*
import
pandas
as
pd
import
pandas
as
pd
...
@@ -89,8 +89,12 @@ class FosaDiaria():
...
@@ -89,8 +89,12 @@ class FosaDiaria():
def
CorreccionDeHora
(
self
,
fin
,
dia
):
def
CorreccionDeHora
(
self
,
fin
,
dia
):
"""Hora de finalizacion menos 10 minutos"""
"""Hora de finalizacion menos 10 minutos"""
strdatetime
=
f
"{dia} {fin}"
strdatetime
=
f
"{dia} {fin}"
delta
=
datetime
.
timedelta
(
minutes
=
11
)
delta
=
datetime
.
timedelta
(
minutes
=
configuracion
.
deltaminutos
)
obj
=
datetime
.
datetime
.
strptime
(
strdatetime
,
date_format_cent
)
-
delta
tmp
=
datetime
.
datetime
.
strptime
(
strdatetime
,
date_format_cent
)
if
configuracion
.
delataPositivoNegativo
==
"-"
:
obj
=
tmp
-
delta
else
:
obj
=
tmp
+
delta
return
obj
.
strftime
(
hora_format_cent
)
return
obj
.
strftime
(
hora_format_cent
)
...
...
Write
Preview
Styling with
Markdown
is supported
Attach a file
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to post a comment