Sponsored Content
Top Forums UNIX for Advanced & Expert Users Alternatives to set the system date ?? Post 49652 by nitrile on Wednesday 7th of April 2004 04:43:24 AM
Old 04-07-2004
One possible way to synchronise may be to telnet to the qnx server on port 13, from a terminal eg.

$ telnet qnx 13

This will dump the time on that system to the console, which you might be able to capture, pass through awk/sed or something like that and pass a number into the date command. At best it won't be as accurate as ntp but close enough for most purposes.

If you can't use date to set time, then either you have insufficient priviliges to do so (root) or the system needs to be reinstalled.
 

10 More Discussions You Might Find Interesting

1. Programming

alternatives of exec() system function

Hi , Can anybody name any System Function in C/C++ for Sun-Solaris (unix) platform which can serve the alternative of execl() system function. Actually I am calling a fork-execl() pair and then making an interprocess communication between these two(parent-child process). But the problem is... (3 Replies)
Discussion started by: Raj Kumar Arora
3 Replies

2. Shell Programming and Scripting

Compare date from db2 table to yesterday's Unix system date

I am currently running the following Korn shell script which works fine: #!/usr/bin/ksh count=`db2 -x "select count(*) from schema.tablename"` echo "count" I would like to add a "where" clause to the 2nd line that would allow me to get a record count of all the records from schema.tablename... (9 Replies)
Discussion started by: sasaliasim
9 Replies

3. Shell Programming and Scripting

Set system date to some date (Sunos)

I am testing a script and need to change the system date to Nov 30 2009. I cannot seem to find a way to do this other than TZ command but it does not seem to work correctly. I tried TZ=GMT+168 date but it is returning todays date Mon Dec 7 19:48:11 GMT 2009 ...instead of Nov 30 2009 I... (4 Replies)
Discussion started by: hanton
4 Replies

4. Shell Programming and Scripting

how to get what date was 28 days ago of the current system date IN UNIX

Hi, Anybody knows how to get what date was 28 days ago of the current system date through UNIX script. Ex : - If today is 28th Mar 2010 then I have to delete the files which arrived on 1st Mar 2010, (15 Replies)
Discussion started by: kandi.reddy
15 Replies

5. UNIX for Dummies Questions & Answers

Delete a row from a file if one column containing a date is greater than the current system date

Hello gurus, I am hoping someone can help me with the required code/script to make this work. I have the following file with records starting at line 4: NETW~US60~000000000013220694~002~~IT~USD~2.24~20110201~99991231~01~01~20101104~... (4 Replies)
Discussion started by: chumsky
4 Replies

6. UNIX for Dummies Questions & Answers

Comparing Output Date to Current System Date

Hi Guys, Anyone who knows how to compare the current date with the a file containing a date, say for example I have a file that looks like this: Command was launched from partition 0. ------------------------------------------------ Executing command in server server6 Fri Dec 16... (7 Replies)
Discussion started by: rymnd_12345
7 Replies

7. SCO

Cannot use 'date -t' to set the system date and time

Hi! All, I am trying to reset the date and time since the change in time over the weekend. I cannot issue the command date -t 201703131330. The system gives me an error invalid option. This happens on my SCO OpenServer 5.0.7 and 5.0.6. Do anyone have an idea why? I even tried using... (6 Replies)
Discussion started by: trolley
6 Replies

8. Shell Programming and Scripting

Date: invalid date trying to set Linux date in specific format

i try to set linux date & time in specific format but it keep giving me error Example : date "+%d-%m-%C%y %H:%M:%S" -d "19-01-2017 00:05:01" or date +"%d-%m-%C%y %H:%M:%S" -d "19-01-2017 00:05:01" keep giving me this error : date: invalid date ‘19-01-2017 00:05:01' Please use CODE tags... (7 Replies)
Discussion started by: umen
7 Replies

9. UNIX for Beginners Questions & Answers

Compare date in .txt with system date and remove if it's lesser than system date

Can someone help me with the code wherein there is a file f1.txt with different column and 34 column have expiry date and I need to get that and compare with system date and if expiry date is <system date remove those rows and other rows should be moved to new file f2.txt . I don't want to delete... (2 Replies)
Discussion started by: Stuti
2 Replies

10. Answers to Frequently Asked Questions

Compare date in .txt with system date and remove if it's lesser than system date

I m working on shell scripting and I m stuck where in my .txt file there is column as expiry date and I need to compare that date with system date and need to remove all the rows where expiry date is less than system date and create a new .txt with update. (1 Reply)
Discussion started by: Stuti
1 Replies
Date::Manip::Lang::russian(3pm) 			User Contributed Perl Documentation			   Date::Manip::Lang::russian(3pm)

NAME
Date::Manip::Lang::russian - Russian language support. SYNOPSIS
This module contains a list of words and expressions supporting the language. It is not intended to be used directly (other Date::Manip modules will load it as needed). LANGUAGE EXPRESSIONS
The following is a list of all language words and expressions used to write times and/or dates. All strings are case insensitive. Month names and abbreviations When writing out the name of the month, several different variations may exist including full names and abbreviations. The following month names may be used: XXXXXX XXXXXX XXXXXXX XXXXXXX XXXXX XXXX XXXXXX XXXXXX XXX XXX XXXX XXXX XXXX XXXX XXXXXXX XXXXXX XXXXXXXX XXXXXXXX XXXXXXX XXXXXXX XXXXXX XXXXXX XXXXXXX XXXXXXX The following abbreviations may be used: XXX XXX. XXX XXX XXXX. XXX XXXXX XXXX XXX XXX. XXX XXX XXX XXXX XXXX XXX XXXX XXXX XXX XXX. XXX XXX XXXX. XXX XXX. XXXX XXX XXXX. XXX XXX. Day names and abbreviations When writing out the name of the day, several different variations may exist including full names and abbreviations. The following day names may be used: XXXXXXXXXXX XXXXXXX XXXXX XXXXXXX XXXXXXX XXXXXXX XXXXXXXXXXX The following abbreviations may be used: XXX XX XXX XXX XX XXX XXX XX XXe XXX XX XXX XXX XX XXX XXX XX XXX XXX XX XXXX The following short (1-2 characters) abbreviations may be used: XX XX XX XX XX XX XX Delta field names These are the names (and abbreviations) for the fields in a delta. There are 7 fields: years, months, weeks, days, hours, minutes, seconds. The names and abbreviations for these fields are: X XX XXX XXX XXX XXXX XXX XXXXX XXXXXXX XXXXXX XXXXXX XXXXXX XXXXXX X XXXX XXXX XXX X X. XX XXX XXX XXXXX XXXX XX XXX XXXXXX XXXXX X XXX XXXXXXX XXXXXX Morning/afternoon times This is a list of expressions use to designate morning or afternoon time when a time is entered as a 12-hour time rather than a 24-hour time. For example, in English, the time "17:00" could be specified as "5:00 PM". Morning and afternoon time may be designated by the following sets of words: XX XX X.X. XXXX XXXX XX XXXXXXX XX XX X.X. XXX XXXXXX XXXXX XXXXXXX XX XXXXXXX Each or every There are a list of words that specify every occurence of something. These are used in the following phrases: EACH Monday EVERY Monday EVERY month The following words may be used: XXXXXX Next/Previous/Last occurence There are a list of words that may be used to specify the next, previous, or last occurence of something. These words could be used in the following phrases: NEXT week LAST tuesday PREVIOUS tuesday LAST day of the month The following words may be used: Next occurence: XXXXXXXXX Previous occurence: XXXXXXXXXX Last occurence: XXXXXXXXX Delta words for going forward/backward in time When parsing deltas, there are words that may be used to specify the the delta will refer to a time in the future or to a time in the past (relative to some date). In English, for example, you might say: IN 5 days 5 days AGO The following words may be used to specify deltas that refer to dates in the past or future respectively: XXXXX XX XXXXXX XX XXXXX Business mode This contains two lists of words which can be used to specify a standard (i.e. non-business) delta or a business delta. Previously, it was used to tell whether the delta was approximate or exact, but now this list is not used except to force the delta to be standard. The following words may be used: XXXXX XXXXXXXX The following words may be used to specify a business delta: XXXXXXX Numbers Numbers may be spelled out in a variety of ways. The following sets correspond to the numbers from 1 to 53: 1 XXXXXX XXXXXXX XXXXXX XXXX 2 XXXXXX XXXXXXX XXXXXX XXX 3 XXXXXX XXXXXXXX XXXXXX XXX 4 XXXXXXXXX XXXXXXXXXX XXXXXXXXX XXXXXX 5 XXXXX XXXXXX XXXXX XXXX 6 XXXXXX XXXXXXX XXXXXX XXXXX 7 XXXXXXX XXXXXXXX XXXXXXX XXXX 8 XXXXXXX XXXXXXXX XXXXXXX XXXXXX 9 XXXXXXX XXXXXXXX XXXXXXX XXXXXX 10 XXXXXXX XXXXXXXX XXXXXXX XXXXXX 11 XXXXXXXXXXXX XXXXXXXXXXXXX XXXXXXXXXXXX XXXXXXXXXXX 12 XXXXXXXXXXX XXXXXXXXXXXX XXXXXXXXXXX XXXXXXXXXX 13 XXXXXXXXXXX XXXXXXXXXXXX XXXXXXXXXXX XXXXXXXXXX 14 XXXXXXXXXXXXX XXXXXXXXXXXXXX XXXXXXXXXXXXX XXXXXXXXXXXX 15 XXXXXXXXXXX XXXXXXXXXXXX XXXXXXXXXXX XXXXXXXXXX 16 XXXXXXXXXXXX XXXXXXXXXXXXX XXXXXXXXXXXX XXXXXXXXXXX 17 XXXXXXXXXXXX XXXXXXXXXXXXX XXXXXXXXXXXX XXXXXXXXXX 18 XXXXXXXXXXXXXX XXXXXXXXXXXXXXX XXXXXXXXXXXXXX XXXXXXXXXXXX 19 XXXXXXXXXXXXX XXXXXXXXXXXXXX XXXXXXXXXXXXX XXXXXXXXXXXX 20 XXXXXXXXX XXXXXXXXXX XXXXXXXXX XXXXXXXX 21 XXXXXXXX XXXXXX XXXXXXXX XXXXXXX XXXXXXXX XXXXXX XXXXXXXX XXXX 22 XXXXXXXX XXXXXX XXXXXXXX XXXXXX XXXXXXXX XXXXXX XXXXXXXX XXX 23 XXXXXXXX XXXXXX XXXXXXXX XXXXXXXX XXXXXXXX XXXXXX XXXXXXXX XXX 24 XXXXXXXX XXXXXXXXX XXXXXXXX XXXXXXXXXX XXXXXXXX XXXXXXXXX XXXXXXXX XXXXXX 25 XXXXXXXX XXXXX XXXXXXXX XXXXXX XXXXXXXX XXXXX XXXXXXXX XXXX 26 XXXXXXXX XXXXXX XXXXXXXX XXXXXXX XXXXXXXX XXXXXX XXXXXXXX XXXXX 27 XXXXXXXX XXXXXXX XXXXXXXX XXXXXXXX XXXXXXXX XXXXXXX XXXXXXXX XXXX 28 XXXXXXXX XXXXXXX XXXXXXXX XXXXXXXX XXXXXXXX XXXXXXX XXXXXXXX XXXXXX 29 XXXXXXXX XXXXXXX XXXXXXXX XXXXXXXX XXXXXXXX XXXXXXX XXXXXXXX XXXXXX 30 XXXXXXXXX XXXXXXXXXX XXXXXXXXX XXXXXXXX 31 XXXXXXXX XXXXXX XXXXXXXX XXXXXXX XXXXXXXX XXXXXX XXXXXXXX XXXX 32 XXXXXXXX XXXXXX XXXXXXXX XXXXXX XXXXXXXX XXXXXX XXXXXXXX XXX 33 XXXXXXXX XXXXXX XXXXXXXX XXXXXXXX XXXXXXXX XXXXXX XXXXXXXX XXX 34 XXXXXXXX XXXXXXXXX XXXXXXXX XXXXXXXXXX XXXXXXXX XXXXXXXXX XXXXXXXX XXXXXX 35 XXXXXXXX XXXXX XXXXXXXX XXXXXX XXXXXXXX XXXXX XXXXXXXX XXXX 36 XXXXXXXX XXXXXX XXXXXXXX XXXXXXX XXXXXXXX XXXXXX XXXXXXXX XXXXX 37 XXXXXXXX XXXXXXX XXXXXXXX XXXXXXXX XXXXXXXX XXXXXXX XXXXXXXX XXXX 38 XXXXXXXX XXXXXXX XXXXXXXX XXXXXXXX XXXXXXXX XXXXXXX XXXXXXXX XXXXXX 39 XXXXXXXX XXXXXXX XXXXXXXX XXXXXXXX XXXXXXXX XXXXXXX XXXXXXXX XXXXXX 40 XXXXXXXXX XXXXX 41 XXXXX XXXXXX XXXXX XXXXXXX XXXXX XXXXXX XXXXX XXXX 42 XXXXX XXXXXX XXXXX XXXXXX XXXXX XXXXXX XXXXX XXX 43 XXXXX XXXXXX XXXXX XXXXXXXX XXXXX XXXXXX XXXXX XXX 44 XXXXX XXXXXXXXX XXXXX XXXXXXXXXX XXXXX XXXXXXXXX XXXXX XXXXXX 45 XXXXX XXXXX XXXXX XXXXXX XXXXX XXXXX XXXXX XXXX 46 XXXXX XXXXXX XXXXX XXXXXXX XXXXX XXXXXX XXXXX XXXXX 47 XXXXX XXXXXXX XXXXX XXXXXXXX XXXXX XXXXXXX XXXXX XXXX 48 XXXXX XXXXXXX XXXXX XXXXXXXX XXXXX XXXXXXX XXXXX XXXXXX 49 XXXXX XXXXXXX XXXXX XXXXXXXX XXXXX XXXXXXX XXXXX XXXXXX 50 XXXXXXXXXXX XXXXXXXXXXXX XXXXXXXXXXX XXXXXXXXX 51 XXXXXXXXX XXXXXX XXXXXXXXX XXXXXXX XXXXXXXXX XXXXXX XXXXXXXXX XXXX 52 XXXXXXXXX XXXXXX XXXXXXXXX XXXXXX XXXXXXXXX XXXXXX XXXXXXXXX XXX 53 XXXXXXXXX XXXXXX XXXXXXXXX XXXXXXXX XXXXXXXXX XXXXXX XXXXXXXXX XXX Ignored words In writing out dates in common forms, there are a number of words that are typically not important. There is frequently a word that appears in a phrase to designate that a time is going to be specified next. In English, you would use the word AT in the example: December 3 at 12:00 The following words may be used: X Another word is used to designate one member of a set. In English, you would use the words IN or OF: 1st day OF December 1st day IN December The following words may be used: Not defined in this language Another word is use to specify that something is on a certain date. In English, you would use ON: ON July 5th The following words may be used: X Words that set the date, time, or both There are some words that can be used to specify a date, a time, or both relative to now. Words that set the date are similar to the English words 'yesterday' or 'tomorrow'. These are specified as a delta which is added to the current time to get a date. The time is NOT set however, so the delta is only partially used (it should only include year, month, week, and day fields). The following words may be used: XXXXX -0:0:0:1:0:0:0 XXXXXX +0:0:0:1:0:0:0 XXXXXXXXX -0:0:0:2:0:0:0 XXXXXXXXXXX +0:0:0:2:0:0:0 XXXXXXX 0:0:0:0:0:0:0 Words that set only the time of day are similar to the English words 'noon' or 'midnight'. The following words may be used: XXXXXXX 12:00:00 XXXXXXX 00:00:00 Words that set the entire time and date (relative to the current time and date) are also available. In English, the word 'now' is one of these. The following words may be used: XXXXXX 0:0:0:0:0:0:0 Hour/Minute/Second separators When specifying the time of day, the most common separator is a colon (:) which can be used for both separators. Some languages use different pairs. For example, French allows you to specify the time as 13h30:20, so it would use the following pairs: : : [h] [:] The first column is the hour-minute separator and the second column is the minute-second separator. Both are perl regular expressions. A pair of colons is ALWAY allowed for all languages. If a language allows additional pairs, they are listed here: [X] [X] KNOWN BUGS
None known. BUGS AND QUESTIONS
Please refer to the Date::Manip::Problems documentation for information on submitting bug reports or questions to the author. SEE ALSO
Date::Manip - main module documentation LICENSE
This script is free software; you can redistribute it and/or modify it under the same terms as Perl itself. AUTHOR
Sullivan Beck (sbeck@cpan.org) perl v5.14.2 2012-06-02 Date::Manip::Lang::russian(3pm)
All times are GMT -4. The time now is 12:24 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy