Sponsored Content
Full Discussion: Get timestamp by 'YYYYMMDD'
Operating Systems Solaris Get timestamp by 'YYYYMMDD' Post 302408554 by elph on Monday 29th of March 2010 11:36:43 PM
Old 03-30-2010
Power Still...

Dear datptal, thanks for your kind advice.

Unfortunately, at this environment, we can't use "time-style".
(jlliagre had kindly advised to install GNU but we can't do it due to security reason)

If you have any furthere solution, I'd be so grateful.
Your perl script helped me a lot.

Rgs,
elph
 

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Converting YYYYMMDD to Julian

I am writing some PERL code (and I realize this is a UNIX forum), but was wondering if anyone has a quick routine (PERL or shell scripting) to take a date in YYYYMMDD format and return the 3 digit Julian number. For instance, my program will have a variable called "$Settlement_Date" and will... (5 Replies)
Discussion started by: dfran1972
5 Replies

2. Shell Programming and Scripting

get yesterday in yyyymmdd format

how can i get yesterday in yyyymmdd format? :confused: (13 Replies)
Discussion started by: aaron_fong
13 Replies

3. Shell Programming and Scripting

conversion of different timestamp to standard timestamp

hi i need a scrit to convert one date format to another. for example i have three columns in a file which gets a different format, but lastly i want output with stadard timestamp as "yyyy-mm-dd hh:mm:ss" column1 column2 ... (2 Replies)
Discussion started by: dprakash
2 Replies

4. Shell Programming and Scripting

Getting a relative timestamp from timestamp stored in a file

Hi, I've a file in the following format 1999-APR-8 17:31:06 1500 3 45 1999-APR-8 17:31:15 1500 3 45 1999-APR-8 17:31:25 1500 3 45 1999-APR-8 17:31:30 1500 3 45 1999-APR-8 17:31:55 1500 3 45 1999-APR-8 17:32:06 1500 3 ... (1 Reply)
Discussion started by: vaibhavkorde
1 Replies

5. UNIX for Dummies Questions & Answers

How to compare a file by its timestamp and store in a different location whenever timestamp changes?

Hi All, I am new to unix programming. I am trying for a requirement and the requirement goes like this..... I have a test folder. Which tracks log files. After certain time, the log file is getting overwritten by another file (randomly as the time interval is not periodic). I need to preserve... (2 Replies)
Discussion started by: mailsara
2 Replies

6. Shell Programming and Scripting

Identifying files with a timestamp greater than a given timestamp

I need to be able to identify files with file timestamps greater than a given timestamp. I am using the following solution, although it appears to compare files at the "seconds" granularity and I need it at the milliseconds. When I tested my solution, it missed files that had timestamps... (3 Replies)
Discussion started by: nkm0brm
3 Replies

7. Shell Programming and Scripting

To check timestamp in logfile and display lines upto 3 hours before current timestamp

Hi Friends, I have the following logfile. Currently time in india is 07/31/2014 12:33:34 and i have the following content in logfile. I want to display only those entries which contain string 'Exception' within last 3 hours. In this case, it would be the last line only I can get the... (12 Replies)
Discussion started by: srkmish
12 Replies

8. Shell Programming and Scripting

AIX : Need to convert UNIX Timestamp to normal timestamp

Hello , I am working on AIX. I have to convert Unix timestamp to normal timestamp. Below is the file. The Unix timestamp will always be preceded by EFFECTIVE_TIME as first field as shown and there could be multiple EFFECTIVE_TIME in the file : 3.txt Contents of... (6 Replies)
Discussion started by: rahul2662
6 Replies

9. Shell Programming and Scripting

How to split timestamp and put a dot between YYYYMMDD and HHMMSS?

I have a string time=20170303201234 I want to split it and put a dot result: 20170303.201234 CODE: ttdotss=`echo ${time} | {8}.{8}` Doesn't understand I tried this: CODE: ttdotss=`echo ${time} |cut -c 1-8 | . | cut -c 9-14` Result: script: .: argument expected... (4 Replies)
Discussion started by: digioleg54
4 Replies

10. Shell Programming and Scripting

Grep lines between last hour timestamp and current timestamp

So basically I have a log file and each line in this log file starts with a timestamp: MON DD HH:MM:SS SEP 15 07:30:01 I need to grep all the lines between last hour timestamp and current timestamp. Then these lines will be moved to a tmp file from which I will grep for particular strings. ... (1 Reply)
Discussion started by: nms
1 Replies
DateTime::Locale::lt_LT(3)				User Contributed Perl Documentation				DateTime::Locale::lt_LT(3)

NAME
DateTime::Locale::lt_LT SYNOPSIS
use DateTime; my $dt = DateTime->now( locale => 'lt_LT' ); print $dt->month_name(); DESCRIPTION
This is the DateTime locale package for Lithuanian Lithuania. DATA
This locale inherits from the DateTime::Locale::lt locale. It contains the following data. Days Wide (format) pirmadienis antradienis treXiadienis ketvirtadienis penktadienis XeXtadienis sekmadienis Abbreviated (format) Pr An Tr Kt Pn Xt Sk Narrow (format) P A T K P X S Wide (stand-alone) pirmadienis antradienis treXiadienis ketvirtadienis penktadienis XeXtadienis sekmadienis Abbreviated (stand-alone) Pr An Tr Kt Pn Xt Sk Narrow (stand-alone) P A T K P X S Months Wide (format) sausio vasario kovo balandXio geguXXs birXelio liepos rugpjXXio rugsXjo spalio lapkriXio gruodXio Abbreviated (format) Sau Vas Kov Bal Geg Bir Lie Rgp Rgs Spl Lap Grd Narrow (format) S V K B G B L R R S L G Wide (stand-alone) Sausis Vasaris Kovas Balandis GeguXX BirXelis Liepa RugpjXtis RugsXjis Spalis Lapkritis Gruodis Abbreviated (stand-alone) Sau Vas Kov Bal Geg Bir Lie Rgp Rgs Spl Lap Grd Narrow (stand-alone) S V K B G B L R R S L G Quarters Wide (format) pirmas ketvirtis antras ketvirtis treXias ketvirtis ketvirtas ketvirtis Abbreviated (format) K1 K2 K3 K4 Narrow (format) 1 2 3 4 Wide (stand-alone) pirmas ketvirtis antras ketvirtis treXias ketvirtis ketvirtas ketvirtis Abbreviated (stand-alone) 1K 2K 3K 4K Narrow (stand-alone) 1 2 3 4 Eras Wide prieX KristX po Kristaus Abbreviated pr. Kr. po Kr. Narrow pr. Kr. po Kr. Date Formats Full 2008-02-05T18:30:30 = 2008 m. vasario 5 d.,antradienis 1995-12-22T09:05:02 = 1995 m. gruodXio 22 d.,penktadienis -0010-09-15T04:44:23 = -10 m. rugsXjo 15 d.,XeXtadienis Long 2008-02-05T18:30:30 = 2008 m. vasario 5 d. 1995-12-22T09:05:02 = 1995 m. gruodXio 22 d. -0010-09-15T04:44:23 = -10 m. rugsXjo 15 d. Medium 2008-02-05T18:30:30 = 2008.02.05 1995-12-22T09:05:02 = 1995.12.22 -0010-09-15T04:44:23 = -010.09.15 Short 2008-02-05T18:30:30 = 2008-02-05 1995-12-22T09:05:02 = 1995-12-22 -0010-09-15T04:44:23 = -010-09-15 Default 2008-02-05T18:30:30 = 2008.02.05 1995-12-22T09:05:02 = 1995.12.22 -0010-09-15T04:44:23 = -010.09.15 Time Formats Full 2008-02-05T18:30:30 = 18:30:30 UTC 1995-12-22T09:05:02 = 09:05:02 UTC -0010-09-15T04:44:23 = 04:44:23 UTC Long 2008-02-05T18:30:30 = 18:30:30 UTC 1995-12-22T09:05:02 = 09:05:02 UTC -0010-09-15T04:44:23 = 04:44:23 UTC Medium 2008-02-05T18:30:30 = 18:30:30 1995-12-22T09:05:02 = 09:05:02 -0010-09-15T04:44:23 = 04:44:23 Short 2008-02-05T18:30:30 = 18:30 1995-12-22T09:05:02 = 09:05 -0010-09-15T04:44:23 = 04:44 Default 2008-02-05T18:30:30 = 18:30:30 1995-12-22T09:05:02 = 09:05:02 -0010-09-15T04:44:23 = 04:44:23 Datetime Formats Full 2008-02-05T18:30:30 = 2008 m. vasario 5 d.,antradienis 18:30:30 UTC 1995-12-22T09:05:02 = 1995 m. gruodXio 22 d.,penktadienis 09:05:02 UTC -0010-09-15T04:44:23 = -10 m. rugsXjo 15 d.,XeXtadienis 04:44:23 UTC Long 2008-02-05T18:30:30 = 2008 m. vasario 5 d. 18:30:30 UTC 1995-12-22T09:05:02 = 1995 m. gruodXio 22 d. 09:05:02 UTC -0010-09-15T04:44:23 = -10 m. rugsXjo 15 d. 04:44:23 UTC Medium 2008-02-05T18:30:30 = 2008.02.05 18:30:30 1995-12-22T09:05:02 = 1995.12.22 09:05:02 -0010-09-15T04:44:23 = -010.09.15 04:44:23 Short 2008-02-05T18:30:30 = 2008-02-05 18:30 1995-12-22T09:05:02 = 1995-12-22 09:05 -0010-09-15T04:44:23 = -010-09-15 04:44 Default 2008-02-05T18:30:30 = 2008.02.05 18:30:30 1995-12-22T09:05:02 = 1995.12.22 09:05:02 -0010-09-15T04:44:23 = -010.09.15 04:44:23 Available Formats d (d) 2008-02-05T18:30:30 = 5 1995-12-22T09:05:02 = 22 -0010-09-15T04:44:23 = 15 EEEd (d EEE) 2008-02-05T18:30:30 = 5 An 1995-12-22T09:05:02 = 22 Pn -0010-09-15T04:44:23 = 15 Xt HHmm (HH:mm) 2008-02-05T18:30:30 = 18:30 1995-12-22T09:05:02 = 09:05 -0010-09-15T04:44:23 = 04:44 hhmm (hh:mm a) 2008-02-05T18:30:30 = 06:30 popiet 1995-12-22T09:05:02 = 09:05 prieXpiet -0010-09-15T04:44:23 = 04:44 prieXpiet HHmmss (HH:mm:ss) 2008-02-05T18:30:30 = 18:30:30 1995-12-22T09:05:02 = 09:05:02 -0010-09-15T04:44:23 = 04:44:23 hhmmss (hh:mm:ss a) 2008-02-05T18:30:30 = 06:30:30 popiet 1995-12-22T09:05:02 = 09:05:02 prieXpiet -0010-09-15T04:44:23 = 04:44:23 prieXpiet Hm (H:mm) 2008-02-05T18:30:30 = 18:30 1995-12-22T09:05:02 = 9:05 -0010-09-15T04:44:23 = 4:44 hm (h:mm a) 2008-02-05T18:30:30 = 6:30 popiet 1995-12-22T09:05:02 = 9:05 prieXpiet -0010-09-15T04:44:23 = 4:44 prieXpiet Hms (H:mm:ss) 2008-02-05T18:30:30 = 18:30:30 1995-12-22T09:05:02 = 9:05:02 -0010-09-15T04:44:23 = 4:44:23 hms (h:mm:ss a) 2008-02-05T18:30:30 = 6:30:30 popiet 1995-12-22T09:05:02 = 9:05:02 prieXpiet -0010-09-15T04:44:23 = 4:44:23 prieXpiet M (L) 2008-02-05T18:30:30 = 2 1995-12-22T09:05:02 = 12 -0010-09-15T04:44:23 = 9 Md (M-d) 2008-02-05T18:30:30 = 2-5 1995-12-22T09:05:02 = 12-22 -0010-09-15T04:44:23 = 9-15 MEd (E, M-d) 2008-02-05T18:30:30 = An, 2-5 1995-12-22T09:05:02 = Pn, 12-22 -0010-09-15T04:44:23 = Xt, 9-15 MMdd (MM.dd) 2008-02-05T18:30:30 = 02.05 1995-12-22T09:05:02 = 12.22 -0010-09-15T04:44:23 = 09.15 MMM (LLL) 2008-02-05T18:30:30 = Vas 1995-12-22T09:05:02 = Grd -0010-09-15T04:44:23 = Rgs MMMd (MMM d) 2008-02-05T18:30:30 = Vas 5 1995-12-22T09:05:02 = Grd 22 -0010-09-15T04:44:23 = Rgs 15 MMMdd (MMM-dd) 2008-02-05T18:30:30 = Vas-05 1995-12-22T09:05:02 = Grd-22 -0010-09-15T04:44:23 = Rgs-15 MMMEd (E MMM d) 2008-02-05T18:30:30 = An Vas 5 1995-12-22T09:05:02 = Pn Grd 22 -0010-09-15T04:44:23 = Xt Rgs 15 MMMMd (MMMM d) 2008-02-05T18:30:30 = vasario 5 1995-12-22T09:05:02 = gruodXio 22 -0010-09-15T04:44:23 = rugsXjo 15 MMMMEd (E MMMM d) 2008-02-05T18:30:30 = An vasario 5 1995-12-22T09:05:02 = Pn gruodXio 22 -0010-09-15T04:44:23 = Xt rugsXjo 15 ms (mm:ss) 2008-02-05T18:30:30 = 30:30 1995-12-22T09:05:02 = 05:02 -0010-09-15T04:44:23 = 44:23 y (y) 2008-02-05T18:30:30 = 2008 1995-12-22T09:05:02 = 1995 -0010-09-15T04:44:23 = -10 yM (y-M) 2008-02-05T18:30:30 = 2008-2 1995-12-22T09:05:02 = 1995-12 -0010-09-15T04:44:23 = -10-9 yMEd (EEE, y-M-d) 2008-02-05T18:30:30 = An, 2008-2-5 1995-12-22T09:05:02 = Pn, 1995-12-22 -0010-09-15T04:44:23 = Xt, -10-9-15 yMMM (y MMM) 2008-02-05T18:30:30 = 2008 Vas 1995-12-22T09:05:02 = 1995 Grd -0010-09-15T04:44:23 = -10 Rgs yMMMEd (EEE, y MMM d) 2008-02-05T18:30:30 = An, 2008 Vas 5 1995-12-22T09:05:02 = Pn, 1995 Grd 22 -0010-09-15T04:44:23 = Xt, -10 Rgs 15 yMMMM (y MMMM) 2008-02-05T18:30:30 = 2008 vasario 1995-12-22T09:05:02 = 1995 gruodXio -0010-09-15T04:44:23 = -10 rugsXjo yQ (y Q) 2008-02-05T18:30:30 = 2008 1 1995-12-22T09:05:02 = 1995 4 -0010-09-15T04:44:23 = -10 3 yQQQ (y QQQ) 2008-02-05T18:30:30 = 2008 K1 1995-12-22T09:05:02 = 1995 K4 -0010-09-15T04:44:23 = -10 K3 yyQ (Q yy) 2008-02-05T18:30:30 = 1 08 1995-12-22T09:05:02 = 4 95 -0010-09-15T04:44:23 = 3 -10 yyyyMM (yyyy.MM) 2008-02-05T18:30:30 = 2008.02 1995-12-22T09:05:02 = 1995.12 -0010-09-15T04:44:23 = -010.09 Miscellaneous Prefers 24 hour time? Yes Local first day of the week pirmadienis SUPPORT
See DateTime::Locale. AUTHOR
Dave Rolsky <autarch@urth.org> COPYRIGHT
Copyright (c) 2008 David Rolsky. All rights reserved. This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself. This module was generated from data provided by the CLDR project, see the LICENSE.cldr in this distribution for details on the CLDR data's license. perl v5.16.2 2013-08-25 DateTime::Locale::lt_LT(3)
All times are GMT -4. The time now is 08:42 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy