Displaying 8 results from an estimated 8 matches for "diff_days".
2024 Oct 07
1
Optimizar bucle for
...ay más de un registro borrar aquellos de más de 6 meses
if (nrow(subset_df) > 1) {
# Inicializar la referencia del primer registro no borrado
reference_date <- subset_df$date[1]
for (i in 2:nrow(subset_df)) {
# Calcular la diferencia en días respecto a la referencia
diff_days <- as.numeric(difftime(subset_df$date[i], reference_date, units = "days"))
# Si la diferencia es menor que el umbral, marcado para borrar
if (diff_days < umbral) {
df$BORRAR[df$ID == id & df$date == subset_df$date[i]] <- 1
} else {
# Actuali...
2017 Feb 08
3
Users list and the date the password will expire
...[ $set_date ] && [ $set_date -gt 1 ]; then
> >
> > UNIXTimeStamp=$((($set_date/10000000)-11644473600))
> > then_sec=`date -d "1970-01-01 $UNIXTimeStamp sec
> > GMT" +%s`
> > now_sec=`date +%s`
> > diff_days=$(( ( $now_sec - $then_sec )/60/60/24 ))
> > exp_days=$(( $max_pwAge - $diff_days ))
> >
> > if [ $exp_days == 90 ] || [ $exp_days == 60 ] || [
> > $exp_days == 30 ]; then
> >
> > mail_string=`ldbsearch -H...
2024 Oct 07
1
Optimizar bucle for
...los de más de 6 meses
> if (nrow(subset_df) > 1) {
> # Inicializar la referencia del primer registro no borrado
> reference_date <- subset_df$date[1]
>
> for (i in 2:nrow(subset_df)) {
> # Calcular la diferencia en días respecto a la referencia
> diff_days <- as.numeric(difftime(subset_df$date[i], reference_date,
> units = "days"))
>
> # Si la diferencia es menor que el umbral, marcado para borrar
> if (diff_days < umbral) {
> df$BORRAR[df$ID == id & df$date == subset_df$date[i]] <- 1
>...
2017 Feb 08
4
Users list and the date the password will expire
...et | tr -dc '0-9'`
if [ $set_date ] && [ $set_date -gt 1 ]; then
UNIXTimeStamp=$((($set_date/10000000)-11644473600))
then_sec=`date -d "1970-01-01 $UNIXTimeStamp sec GMT" +%s`
now_sec=`date +%s`
diff_days=$(( ( $now_sec - $then_sec )/60/60/24 ))
exp_days=$(( $max_pwAge - $diff_days ))
if [ $exp_days == 90 ] || [ $exp_days == 60 ] || [
$exp_days == 30 ]; then
mail_string=`ldbsearch -H
/usr/local/samba/private/sam.ldb -s sub -b $basedn cn=...
2024 Oct 07
1
Optimizar bucle for
...f (nrow(subset_df) > 1) {
> > # Inicializar la referencia del primer registro no borrado
> > reference_date <- subset_df$date[1]
> >
> > for (i in 2:nrow(subset_df)) {
> > # Calcular la diferencia en días respecto a la referencia
> > diff_days <- as.numeric(difftime(subset_df$date[i], reference_date,
> > units = "days"))
> >
> > # Si la diferencia es menor que el umbral, marcado para borrar
> > if (diff_days < umbral) {
> > df$BORRAR[df$ID == id & df$date == subset_df$...
2024 Oct 07
1
Optimizar bucle for
...gt; > > # Inicializar la referencia del primer registro no borrado
> > > reference_date <- subset_df$date[1]
> > >
> > > for (i in 2:nrow(subset_df)) {
> > > # Calcular la diferencia en días respecto a la referencia
> > > diff_days <- as.numeric(difftime(subset_df$date[i],
> reference_date,
> > > units = "days"))
> > >
> > > # Si la diferencia es menor que el umbral, marcado para borrar
> > > if (diff_days < umbral) {
> > > df$BORRAR[df$ID ==...
2017 Feb 08
0
Users list and the date the password will expire
...-9'`
>
> if [ $set_date ] && [ $set_date -gt 1 ]; then
>
> UNIXTimeStamp=$((($set_date/10000000)-11644473600))
> then_sec=`date -d "1970-01-01 $UNIXTimeStamp sec GMT"
> +%s`
> now_sec=`date +%s`
> diff_days=$(( ( $now_sec - $then_sec )/60/60/24 ))
> exp_days=$(( $max_pwAge - $diff_days ))
>
> if [ $exp_days == 90 ] || [ $exp_days == 60 ] || [
> $exp_days == 30 ]; then
>
> mail_string=`ldbsearch -H
> /usr/local/samba/private...
2017 Feb 09
0
Users list and the date the password will expire
...amp; [ $set_date -gt 1 ]; then
>>>
>>> UNIXTimeStamp=$((($set_date/10000000)-11644473600))
>>> then_sec=`date -d "1970-01-01 $UNIXTimeStamp sec
>>> GMT" +%s`
>>> now_sec=`date +%s`
>>> diff_days=$(( ( $now_sec - $then_sec )/60/60/24 ))
>>> exp_days=$(( $max_pwAge - $diff_days ))
>>>
>>> if [ $exp_days == 90 ] || [ $exp_days == 60 ] || [
>>> $exp_days == 30 ]; then
>>>
>>> mail_s...