Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [date]

The tag has no usage guidance.

0
votes
2answers
38 views

Linux Script to Solaris

Hellooo! I have the following sentence, that works on Linux, but not in Solaris Version. YEAR=2019 echo $(expr '(' $(date -d $YEAR/9/30 +%s) - $(date +%s) + 86399 ')' / 86400) " days until deadline" ...
0
votes
1answer
47 views

Count down date time shell script [closed]

i have 3 parameters of date "Sep 30 Mon" (Month,DayNumber,Day), and i want to make a shell script that shows the quantity of days left to reach to Sep 30 Mon. How can i do it?
6
votes
1answer
82 views

Ubuntu 18.04 strange behaviour of date with --date option

I've found strange behaviour of date program in Ubuntu 18.04. So, I consider date should work with --date option and correctly process +N minutes: date --date "2019-01-01 13:43:32 +1 minutes" "+%Y-%...
0
votes
1answer
22 views

Query Network Client Date

Question: Is there a way to ping or query the date of a client linux computer for the purpose of verifying time synchronization? Setup: I have two computers on a network. One linux machine (machine A)...
2
votes
1answer
211 views

filtering event logs with specific TIME range of ANY day

How can I query windows server events between two times of any day? I have tried with PowerShell... Get-EventLog -Logname xxxx -After 04:00:00 -Before 04:00:30 ...but just returns today's events
1
vote
0answers
81 views

Journalctl seems to be ignoring since and until

I'm trying to get the logs of a problem that's been happening for over a week by this point. I'm trying to use journalctl to print the logs but it doesn't seem to give me anything more or less than ...
0
votes
3answers
109 views

Properly setting date on Linux machines

I am trying to set the system date on my linux machine. If it matters, it is an Amazon EC2 machine that I provisioned. I tried to set the date with this command: sudo date -s "19 APR 2018 11:14:00"; ...
0
votes
2answers
201 views

How do I change the date in Google Cloud Container-Optimized OS?

I try to set date: sudo date -s "28 OCT 2018 15:00:00" but before I need to disable NTP timedatectl set-ntp false Google Cloud Container-Optimized OS doesn't have timedatectl util -bash: ...
0
votes
2answers
55 views

Fail to set EEST timezone

I have a server which is set to EEST timezone (East European Summer Time). I'm trying to configure another server to this timezone, but I fail to find appropriate timezone in /usr/share/zoneinfo Any ...
0
votes
1answer
1k views

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: ...
0
votes
1answer
467 views

SCCM WQL Query Structure BIOS release date

So with this whole Meltdown and Spectre causing a huge fuss world wide. I have discovered a solution to mass deploy BIOS updates. The one thing is when checking compliance I am unable to locate ...
0
votes
0answers
24 views

Different format of date is valid in query string on different VMs with the same regional settings

I deployed .NET application hosted on IIS on two different VMs with Windows Server 2016 on them, the code is exactly the same. However on one machine the date in query string 30/01/2018 is parsed ...
1
vote
2answers
128 views

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 ...
0
votes
0answers
14 views

Cron with dynamic date on parameter not executing [duplicate]

I have the following command that works well when I execute it manually : sendreport --date_start=`date +%Y-%m-19 -d "-1 month"` --date_end=`date +%Y-%m-19` --to=myemail@mydomain.ch My problem is ...
-5
votes
1answer
56 views

“date” returning a month as a 3-char word [closed]

At the moment I call date this way: date '+%Y %m %d' # ==> 2017 12 01 How should I adjust it so that it return a month in the 3-char format? Like this: date '+%Y %m %d' # ==> 2017 dec ...
1
vote
1answer
429 views

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 ...
0
votes
1answer
451 views

Wrong date on mails when searching on iPhone after Exchange migration

After a colleague of mine migrated Exchange for a customer from Exchange on a small business server to Exchange 2016 the dates are messed up when searching. When a user just browses his or her email ...
1
vote
3answers
4k views

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 ...
-2
votes
3answers
365 views

Incorrect Ubuntu server time [closed]

I use 14.04.1-Ubuntu. When execute date in command line, I get time which about 1 min different comparing Greenwich Mean Time or other source. I synchronized it using sudo ntpdate -s time.nist.gov few ...
0
votes
2answers
281 views

rsync logfile starts to include litteral date format in path

I created a backup-shell that runs as a cron job. That's not new.... But in the command line I have the logfilename specified with a date format. All is ok, until it reaches the folder where the ...
0
votes
1answer
276 views

Add Calendar Option to Jasper Report

I spun up a Jasper Reports server (version 6.3) and I'm migrating reports from our old server (5.0.0). Some of the reports in the old instance have options for date ranges. In the 5.0.0 instance users ...
0
votes
1answer
192 views

'date' on SLES 12 SP2 instantly reset

I'm attempting to test my system monitoring by temporarily disabling NTP and using "date -s '5 minutes ago'" to change time enough to trigger my alerts. This test works fine on SLES 11 and SLES 12 SP1....
0
votes
1answer
315 views

Centos 6 Timezone Wrong

I am trying to set my Centos 6 VPS to GMT timezone. I tried a sudo ln -s /usr/share/zoneinfo/GMT /etc/localtime Which works fine. However when I run date it returns: Tue Oct 4 05:09:32 GMT 2016 ...
0
votes
1answer
1k views

Date format conversion to epoch using gawk ( awk )

I want to convert dates in a file to epoch time. A sample csv looks like this: $ cat test.jtl 2016/09/19 00:31:17.080,238,test1 2016/09/19 00:31:17.154,322,test2 22-Sep-2014 10:32:35.012,222,...
-2
votes
1answer
4k views

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 ...
-2
votes
2answers
316 views

date +“%s” returning empty string [closed]

I have a script with following lines: TIMESTAMP_END=$(date +"%s") FILE=${DIR}/recording_$TIMESTAMP_BEGIN-$TIMESTAMP_END.$EXT mv ${TMP_FILE} ${FILE} Script is running on Raspberry Pi and the ...
2
votes
0answers
530 views

How to configure hwclock to UTC on Redhat Linux?

I have linux redhat machine # more /etc/redhat-release Red Hat Enterprise Linux Server release 5.11 (Tikanga) I want to change the hwclock to UTC time So I perform little test as # date -u Tue ...
6
votes
2answers
3k views

Red hat Linux + TIME ZONE CONFIGURATION + details from clock file

In order to configure the Time Zone on red hat Linux machine ( version 5 and 6 ) need to configure the file: /etc/sysconfig/clock And create a symbolic link between /etc/localtime to /usr/share/...
1
vote
1answer
721 views

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 +%...
0
votes
1answer
659 views

which table should I query for date & time in zabbix?

i need to query date and time in zabbix server. which table exactly stores these 2 parameters? Actually there is a table named history and there are two fields in that table named "clock" and "ns", ...
1
vote
1answer
1k views

Creating a RFC 1123 compliant date for HTTP header creation on the CLI

I'm trying to create a HTTP 1/1 compliant date header using standard unix date(1) in order to post this to a RESTful server using curl or similar. Any ideas what format to pass to date(1) to get this ...
0
votes
1answer
1k views

How do I force a date/time format for traffic captured with tshark using “-T fields”?

I'm capturing traffic with tshark into a CSV file using "-T fields", but whatever I try I can't get a nice ISO date or even changing the timezone to UTC. The command I'm using is tshark.exe -i 2 -c ...
0
votes
2answers
2k views

Setting the system date to a day in the past on Windows 2012

I have an business application that uses the system date for all of it's date processing. We need to be able to fix the date to a particular date, and at midnight, reset the date back to this fixed ...
-2
votes
1answer
155 views

Add date using echo without calculating [closed]

I should add the line to /var/spool/cron/crontabs/root on my ESXi: /bin/echo "0 3 * * 6 /ghettoVCB-master/ghettoVCB.sh -g /ghettoVCB-master/text.conf -f /ghettoVCB-master/text.list > /var/log/...
-4
votes
2answers
309 views

execute bash script on last thursday of every month [closed]

Actually i have a bash script file and i want to execute it on the last thursday of every month please help me to find out the proper solution of that problem using bash scripting.
0
votes
1answer
73 views

Linux screen(or java) with different date of system

I having a problem with screen on Centos 7. The system time is correct but on screen application theres a diference of 3 hours. The system output(correct): [root@Server ~]# date Ter Fev 23 01:27:11 ...
1
vote
1answer
134 views

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 ...
0
votes
2answers
1k views

logrotate issue with date appending

I have an Apache server (2.2) running in RHEL 6.3, with the following logrotate configuration: # Rule for Apache logs /var/opt/apache/logs/*log { compress missingok notifempty daily ...
1
vote
2answers
313 views

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 ...
6
votes
3answers
19k views

ansible manipulate file with a date format

In ansible, I would like to manipulate files/directories/archive that are composed or to composed like this: How would I do that. It seem Ansible is not able to handler that. (I doubt). So, what I do ...
1
vote
1answer
547 views

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?
2
votes
1answer
1k views

How to start tomcat with faketime within a docker container?

I use docker to deploy a Java web application in tomcat. For testing purposes, I want to force the system date to a specific value. With Docker it is not possible to change the container date without ...
0
votes
1answer
180 views

How exactly date/time works in MySQL with timezones?

My understanding was: everything is UTC internally dates are displayed in @@session.time_zone timezone for current session if I do INSERT with +02:00 TZ set and insert 2015-05-15 10:54 it is parsed ...
111
votes
9answers
177k views

Docker Container time & timezone (will not reflect changes)

Where do Docker containers get their time information? I've created some containers from the basic ubuntu:trusty image, and when I run it and request 'date', I get UTC time. For awhile I got around ...
1
vote
1answer
139 views

Why my date command changed and how to restore the default one?

I'm having a problem in a RHEL 5.3 after I tried installing Perl Power Tools. Everything was working fine until I tried installing that package by hand (the server has no access to internet). At ...
3
votes
2answers
3k views

bash: convert date from to unix timestamp changes timestamp

Running the following command at the xen-servers (either DOM0 or DOMU) at $company gives me a negativ number, on every other system zero (0) (even in my cygwin). date -d "1970-01-01T00:00:00" "+%s" $...
0
votes
1answer
271 views

Will changing the date or time on windows server 2008 break any websites or anything else?

Sorry if this is a newb question, but I was told by someone about a month ago that if I change the date and/or time on one of our servers it could break our websites or something. I can't fully ...
4
votes
1answer
140 views

date command displays different time

I have one centos 5.8 Linux server. I am experiencing a bit strange issue and figured out it is something with system time. When I check date command, outputs are really strange. Here is example: [...
1
vote
0answers
986 views

Syslog randomly logs bad time [duplicate]

Try as I might, I can't figure out why this server randomly timestamps syslog entries with bad time. Here's a 5-minute stretch of syslog from a few minutes ago. You'll notice there are two places ...
0
votes
1answer
71 views

Ubuntu server time jumping away

I wanted to write "drifting away" in the header but this is not what's happening. I have an Ubuntu 12.04 LTS server running some web apps. On 25.10.2014 I updated tzdata to the latest version and ...