Questions tagged [date]

154 questions
2
votes
1 answer

Users changing date/time from BIOS

We have around 350 Windows XP PC and a Windows 2008 R2 Server. The problem is that some users are changing the date/time from BIOS and the next user who would try to log-in on that PC would get the date/time server difference error. We tried to…
Ignacio
2
votes
2 answers

Display nth instance of grepped pattern

So here's my problem. I have an issue with a .csv file (Current.csv) in that there are commas randomly place throughout the data, so awk-ing the file doesn't give me constant column numbers for a particular type of information I'm looking for. …
user121351
2
votes
2 answers

Bash scripting: detect first day of month

I wrote three bash files: incremental_backup full_backup execution Now I want another bash script do the following : if (date is the start of month 1/-/----) then invoke `full_back_up` else invoke `incremental_backup` How can I…
Mohammad AL-Rawabdeh
  • 1,612
  • 12
  • 33
  • 54
2
votes
2 answers

Transfer files older than N days with WinSCP

How to transfer files with WinSCP that are older than N days? It seems there is no such option inside. But could it be done with scripting/cmd mix?
2
votes
3 answers

Changing linux date with current time

I am running sudo date +%m/%d/%Y -s 7/14/2010 command to change date. It changes fine except I want it to pick up the current time as well, and not start the time from 00:00:00 on 7/14/2010.
gAMBOOKa
  • 999
  • 6
  • 19
  • 34
2
votes
1 answer

What is changing my Windows Server's date?

At my organisation we have a number of virtual machines on ESXi hosts in a number of sites. For the past few months, around once or twice a week one virtual machine, seemingly at random, will update the date to something weeks in the future for a…
Mayzed
  • 21
  • 1
1
vote
1 answer

Trying to set date time within ubuntu based docker container

Within my docker container I run: root@77defb7a21e5:/# lsb_release -a No LSB modules are available. Distributor ID: Debian Description: Debian GNU/Linux 8.9 (jessie) Release: 8.9 Codename: jessie root@77defb7a21e5:/# date Tue Aug 7 16:54:14…
Jose Cabrera Zuniga
  • 179
  • 1
  • 3
  • 11
1
vote
2 answers

Windows: how to set a date and time before logon?

Complete newbie to powershell and scripting, here. I have figured out how to set date and time through powershell using the set-date cmdlet. However, I can't figure out how to execute the script with admin rights before Windows logon or anyway as…
resle
  • 189
  • 1
  • 1
  • 9
1
vote
1 answer

Bash scripting: Get the week of month by referencing the Monday of that week

I'd like to be able to retrieve the number of the Monday of the current week using a bash script in Ubuntu Linux. Example and info: This past Monday (Oct 30th) was the fifth Monday in October, and Wednesday was the first day and obviously first…
1
vote
3 answers

Date field is being presented as integer

I have an Elastic Stack server (on Hyper-v) that is ingesting data via a logstash exec command and performing analytics on it. Everything is working great except a date field that is being displayed as a number. How do I get logstash, Elasticsearch…
Elliot Huffman
  • 1,229
  • 1
  • 12
  • 25
1
vote
2 answers

Change date on a computer that is attached to a domain

Is it possible to change the date of a computer that is attached to a domain and have it stick? I've researched this for a few days and haven't found anything confirming or denying that this is possible. The computer we have is Windows 10 and the…
ryol
  • 35
  • 1
  • 2
  • 4
1
vote
1 answer

Timestamp comparison on AIX without date -d

I have a bash script on AIX 7 that runs a database query and the output I get is a timestamp in the following format: 201607130319. Now I would like to compare the timestamp with current time (date +%Y%m%d%H%M - 201607201802) and check the…
Debianuser
  • 421
  • 4
  • 12
  • 29
1
vote
1 answer

Portwell motherboard: Boot-time fsck finds "unexpected inconsistency" due to system time

Although this question involves an embedded motherboard, serverfault seemed to me the best stackexchange forum to post to. My colleagues and I have been investigating this weird Linux boot problem for a few months now, and we're kinda stuck. Any…
Timothy Miller
  • 291
  • 1
  • 2
  • 11
1
vote
2 answers

System clock always resyncs after setting it

I'm setting the system clock using the following command: date -s "31 DEC 2015 12:00:00" Immediately after executing I run just date and see that the date and time is December 31 2015. Then, after waiting about three seconds, I run date again and…
1
vote
1 answer

Solaris + date + what is the same equivalent for Solaris

on Linux the syntax for date with seconds is: date +%s 1438587288 from MAN PAGE - %s seconds since 1970-01-01 00:00:00 UTC what is the same equivalent for Solaris?
maihabunash
  • 443
  • 1
  • 11
  • 25