Spaces:
Build error
Build error
Orange
Browse files- funciones.py +1 -1
- timestamp.py +5 -0
funciones.py
CHANGED
|
@@ -126,7 +126,7 @@ def mass(input1, input2):
|
|
| 126 |
return path
|
| 127 |
else:
|
| 128 |
#Para imagen
|
| 129 |
-
path = pathlib.Path("
|
| 130 |
path_abs = os.path.abspath(path)
|
| 131 |
print("Éste es el path para imagen:", path)
|
| 132 |
print("Y su ruta absoluta es: ", path_abs)
|
|
|
|
| 126 |
return path
|
| 127 |
else:
|
| 128 |
#Para imagen
|
| 129 |
+
path = pathlib.Path("orange.png")
|
| 130 |
path_abs = os.path.abspath(path)
|
| 131 |
print("Éste es el path para imagen:", path)
|
| 132 |
print("Y su ruta absoluta es: ", path_abs)
|
timestamp.py
ADDED
|
@@ -0,0 +1,5 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import datetime
|
| 2 |
+
|
| 3 |
+
# Obtener el timestamp actual en segundos desde la época Unix (1 de enero de 1970)
|
| 4 |
+
timestamp = datetime.datetime.now().timestamp()
|
| 5 |
+
print(timestamp)
|