hi,
for reading a cobol indexed file i need to convert "mmddyy" date format to "ccyyddd" format.
i checked the datecalc and other scripts but couldnt modify them to cater to my need:(...
The datecalc gives an output which i believe is the total days till that date, but i want to convert it... (2 Replies)
Hi All,
Need your help in converting a date format in ksh.
I'm currently working on SUN os where my script is getting a date from a table.
The result returns to ksh in this format: 17-JUL-08
How do i convert this string to a date format like yyyymmdd?
I tried #!/bin/ksh
d="17-JUL-08"... (5 Replies)
I have a comma delimited log file which has the date as MM/DD/YY in the 2nd column, and HH:MM:SS in the 3rd column.
I need to change the date format to YYYY-MM-DD and merge it with the the time HH:MM:SS. How will I got about this?
Sample input
02/27/09,23:52:31
02/27/09,23:52:52... (3 Replies)
I've been using this thread:
https://www.unix.com/shell-programming-scripting/58675-change-date-dd-mmm-yyyy-mm-dd-yyyy.html
and
https://www.unix.com/shell-programming-scripting/14655-changing-yyyy-mm-dd-ddmmyy.html
and this code:
on this format:
05/16/2008 18:30:49 Installation 48985and I'm... (3 Replies)
The 6th & 7th column of the text files represents date & time. I need this to be converted in julian format using command "date +%s -d <date>". I know the command, but dont know how to use it on the script
0 dbclstr-b IXT_Web Memphis_Prod_SQL_Full Memphis-Prod-SQL-Full-Application-Backup... (4 Replies)
Good Morning,
I am working on a pyhton script, where it has to fetch a file from our vendor's server over an ftp.
The file is having a date format of "MMDDYYYY" (i have included in my python script), but when the script is executed it is unable to fetch the file.
At the same time, if i... (1 Reply)
Hi,
I am getting the below string as a input for date.
12/03/2013 11:02 AM
I want to change this date as 03-DEC-2013 11:02 AM.
Could you please help on this.
Thanks
Chelladurai (4 Replies)
Hello,
I want to change the format of date value in variable.
e.g. cur_date = '2013/03/13 14:24:50' (yyyy/mm/dd hh24:mi:ss)
I want to change this to '13-MAR-2013 14:24:50
Following code coverts the current date to format I am looking for. But I do not know how this can be done for a date... (8 Replies)
Hi guys
I am looking to convert this kind of entry in a txt file
26/04/2008
to
April 2008
Note : this is not using the date command , these are date entries in a file
can i do this with sed ?
Use code tags, thanks. (5 Replies)
Hi,
Anyone can help I am just converting the excel file to csv using python, I can get the conversion output but the date not display exactly.
test.xlsx date format
167 1588 risks/SCS JP CAMPANA & CIE.pdf SCS JP CAMPANA & CIE 2 1 1 0 2015-03-16 16:56:25
167 1146 risks/AirBNB... (1 Reply)
Discussion started by: fspalero
1 Replies
LEARN ABOUT DEBIAN
html::formfu::inflator::datetime
HTML::FormFu::Inflator::DateTime(3pm) User Contributed Perl Documentation HTML::FormFu::Inflator::DateTime(3pm)NAME
HTML::FormFu::Inflator::DateTime - DateTime inflator
SYNOPSIS ---
elements:
- type: Text
name: start_date
inflators:
- type: DateTime
parser:
strptime: '%d-%m-%Y'
strptime:
pattern: '%d-%b-%Y'
locale: de
- type: Text
name: end_time
inflators:
- type: DateTime
time_zone: Europe/Rome
parser:
regex: '^ (d{2}) - (d{2}) - (d{4}) $'
params: [day, month, year]
strptime: '%d-%m-%Y'
An example of using the same parser declaration for both a DateTime constraint and a DateTime inflator, using YAML references:
---
elements:
- type: Text
name: date
constraints:
- type: DateTime
parser: &PARSER
strptime: '%d-%m-%Y'
inflators:
- type: DateTime
parser: *PARSER
DESCRIPTION
Inflate dates into DateTime objects.
For a corresponding deflator, see HTML::FormFu::Deflator::Strftime.
METHODS
parser
Arguments: \%args
Required. Define the expected input string, so DateTime::Format::Builder knows how to inflate it into a DateTime object.
Accepts arguments to be passed to "parser" in DateTime::Format::Builder.
strptime
Arguments: \%args
Arguments: $string
Optional. Define the format that should be used if the DateTime object is stringified.
time_zone
Arguments: $string
Optional. You can pass along a time_zone in which the DateTime will be created. This is useful if the string to parse does not contain time
zone information and you want the DateTime to be in a specific zone instead of the floating one (which is likely).
Accepts a hashref of arguments to be passed to "new" in DateTime::Format::Strptime. Alternatively, accepts a single string argument,
suitable for passing to "DateTime::Format::Strptime->new( pattern => $string )".
AUTHOR
Carl Franks, "cfranks@cpan.org"
LICENSE
This library is free software, you can redistribute it and/or modify it under the same terms as Perl itself.
perl v5.14.2 2012-01-23 HTML::FormFu::Inflator::DateTime(3pm)