getCreadoEl static method

String? getCreadoEl()

Funcion utilizada para optener el timestamp de la fecha actual

Implementation

static String? getCreadoEl() {
  try {
    final DateTime now = DateTime.now();
    return '${now.year.toString().padLeft(4, '0')}${now.month.toString().padLeft(2, '0')}${now.day.toString().padLeft(2, '0')}${now.hour.toString().padLeft(2, '0')}${now.minute.toString().padLeft(2, '0')}${now.second.toString().padLeft(2, '0')}${now.millisecond.toString().padLeft(3, '0')}';
  } catch (error) {
    FlutterUtilsProvider.logDebug('Error en getCreadoEl: $error');
    return null;
  }
}