Sponsored Content
Top Forums UNIX for Dummies Questions & Answers Alternative of format date in HP unix Post 302138174 by epall on Sunday 30th of September 2007 01:56:14 AM
Old 09-30-2007
It's work

Many, thousands thanks to you.
It workSmilie

I can relax now.
 

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

Unix Date Format

I have an Foxbase application that saves dates in a character field using a Unix date format. Does anyone know what the formula is to convert back to a standard date, something that can be, I hesitate to say, understood in a Windows environment, such as Excel or Access. cheers peter (2 Replies)
Discussion started by: sfpoet
2 Replies

2. Shell Programming and Scripting

Check for the correct date format in UNIx

Hi All, I am getting two input from User for Date from the command prompt when my script is executed . The date format i am taking is : DD-MM-YYYY so is there any method in Unix to validate the two input date. There might be many cases for these two date to be invalid.... (1 Reply)
Discussion started by: rawatds
1 Replies

3. UNIX for Dummies Questions & Answers

changing the format of date in unix

When i execute the below command it is giving the timestamp in the format mentioned below ls -ltr 1234.txt | awk 'BEGIN {FS=" "} {print $6" "$7" "$8}' Mar 20 00:12 i want output in the format 200803200012 please help me how to do it here year is not returned and i have to convert mar to... (5 Replies)
Discussion started by: trichyselva
5 Replies

4. Shell Programming and Scripting

Unix date Format (MON)

Hi , Can any one give me what is the date format for 3 character Month all caps (MON) when I do date +%b it will give me Sep But I want this to be SEP (all caps) . Thanks in advance (1 Reply)
Discussion started by: umathurumella
1 Replies

5. Shell Programming and Scripting

convert unix date to readable format

Dear Experts, I need your help to convert a unix date and time format number in to readable format like dd/mm/yyyy . I have a text file of more than 10,000 records and it is like NAME DATE1 COUNTRY DATE2 ABD 1223580395699 USA 1223580395699... (3 Replies)
Discussion started by: shary
3 Replies

6. Shell Programming and Scripting

convert date format to mysql date format in log file

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)
Discussion started by: hazno
3 Replies

7. Shell Programming and Scripting

Convert date to Unix format

Dear Expert How to convert date in format of YYYY-MM-DD HH:MM:SS to unix format using a script or command if avaliable Example "2011-05-15 18:00:00" is converted to 1330970400 I tried to use option d in date command but no use, Im using solaris 10 Thanks a lot (12 Replies)
Discussion started by: yahyaaa
12 Replies

8. Shell Programming and Scripting

Date Format in UNIX

Hi Guys, Need some help. I want to use the date command in Unix and having this below format as an output. the month should be in FIRST 3 LETTERS & ALL CAPS. And the DAY should be in two digits format DESIRED OUTPUT: 09-JUN-11 I tried to use this command below but still it does... (2 Replies)
Discussion started by: pinpe
2 Replies

9. UNIX for Dummies Questions & Answers

Rename all Files in a UNIX Directory from one date format to another date format

Hi Unix Gurus, I would like to rename several files in a Unix Directory . The filenames can have more than 1 underscore ( _ ) and the last underscore is always followed by a date in the format mmddyyyy. The Extension of the files can be .txt or .pdf or .xls etc and is case insensitive ie... (1 Reply)
Discussion started by: pchegoor
1 Replies

10. Shell Programming and Scripting

Date format change in UNIX .dat file

Hi, I need help to convert the date format in .DAT file in unix. I want to convert 10@@|SWIFT MT568 Extract@@|Apr 14 2014 5:47:52:563PM@@|Apr 14 2014 4:33:47:663PM@@||##| into 10@@|SWIFT MT568 Extract@@|04/14/2014/ 5:47:52:563PM@@|04/14/2014 4:33:47:663PM@@||##| Appreciate... (18 Replies)
Discussion started by: karthikengox
18 Replies
std::numpunct_byname< _CharT >(3cxx)									      std::numpunct_byname< _CharT >(3cxx)

NAME
std::numpunct_byname< _CharT > - SYNOPSIS
Inherits std::numpunct< _CharT >. Public Types typedef __numpunct_cache< _CharT > __cache_type typedef _CharT char_type typedef basic_string< _CharT > string_type Public Member Functions numpunct_byname (const char *__s, size_t __refs=0) char_type decimal_point () const string_type falsename () const string grouping () const char_type thousands_sep () const string_type truename () const Static Public Attributes static locale::id id Protected Member Functions void _M_initialize_numpunct (__c_locale __cloc=0) template<> void _M_initialize_numpunct (__c_locale __cloc) template<> void _M_initialize_numpunct (__c_locale __cloc) virtual char_type do_decimal_point () const virtual string_type do_falsename () const virtual string do_grouping () const virtual char_type do_thousands_sep () const virtual string_type do_truename () const Static Protected Member Functions static __c_locale _S_clone_c_locale (__c_locale &__cloc) throw () static void _S_create_c_locale (__c_locale &__cloc, const char *__s, __c_locale __old=0) static void _S_destroy_c_locale (__c_locale &__cloc) static __c_locale _S_get_c_locale () static const char * _S_get_c_name () throw () static __c_locale _S_lc_ctype_c_locale (__c_locale __cloc, const char *__s) Protected Attributes __cache_type * _M_data Detailed Description template<typename _CharT>class std::numpunct_byname< _CharT > class numpunct_byname [22.2.3.2]. Definition at line 1875 of file locale_facets.h. Member Function Documentation template<typename _CharT > char_type std::numpunct< _CharT >::decimal_point () const [inline], [inherited] Return decimal point character. This function returns a char_type to use as a decimal point. It does so by returning returning numpunct<char_type>::do_decimal_point(). Returns: char_type representing a decimal point. Definition at line 1708 of file locale_facets.h. template<typename _CharT > virtual char_type std::numpunct< _CharT >::do_decimal_point () const [inline], [protected], [virtual], [inherited] Return decimal point character. Returns a char_type to use as a decimal point. This function is a hook for derived classes to change the value returned. Returns: char_type representing a decimal point. Definition at line 1795 of file locale_facets.h. template<typename _CharT > virtual string_type std::numpunct< _CharT >::do_falsename () const [inline], [protected], [virtual], [inherited] Return string representation of bool false. Returns a string_type containing the text representation for false bool variables. This function is a hook for derived classes to change the value returned. Returns: string_type representing printed form of false. Definition at line 1846 of file locale_facets.h. template<typename _CharT > virtual string std::numpunct< _CharT >::do_grouping () const [inline], [protected], [virtual], [inherited] Return grouping specification. Returns a string representing groupings for the integer part of a number. This function is a hook for derived classes to change the value returned. See Also: grouping() for details. Returns: String representing grouping specification. Definition at line 1820 of file locale_facets.h. template<typename _CharT > virtual char_type std::numpunct< _CharT >::do_thousands_sep () const [inline], [protected], [virtual], [inherited] Return thousands separator character. Returns a char_type to use as a thousands separator. This function is a hook for derived classes to change the value returned. Returns: char_type representing a thousands separator. Definition at line 1807 of file locale_facets.h. template<typename _CharT > virtual string_type std::numpunct< _CharT >::do_truename () const [inline], [protected], [virtual], [inherited] Return string representation of bool true. Returns a string_type containing the text representation for true bool variables. This function is a hook for derived classes to change the value returned. Returns: string_type representing printed form of true. Definition at line 1833 of file locale_facets.h. template<typename _CharT > string_type std::numpunct< _CharT >::falsename () const [inline], [inherited] Return string representation of bool false. This function returns a string_type containing the text representation for false bool variables. It does so by calling numpunct<char_type>::do_falsename(). Returns: string_type representing printed form of false. Definition at line 1778 of file locale_facets.h. template<typename _CharT > string std::numpunct< _CharT >::grouping () const [inline], [inherited] Return grouping specification. This function returns a string representing groupings for the integer part of a number. Groupings indicate where thousands separators should be inserted in the integer part of a number. Each char in the return string is interpret as an integer rather than a character. These numbers represent the number of digits in a group. The first char in the string represents the number of digits in the least significant group. If a char is negative, it indicates an unlimited number of digits for the group. If more chars from the string are required to group a number, the last char is used repeatedly. For example, if the grouping() returns '0302' and is applied to the number 123456789, this corresponds to 12,34,56,789. Note that if the string was '32', this would put more than 50 digits into the least significant group if the character set is ASCII. The string is returned by calling numpunct<char_type>::do_grouping(). Returns: string representing grouping specification. Definition at line 1752 of file locale_facets.h. template<typename _CharT > char_type std::numpunct< _CharT >::thousands_sep () const [inline], [inherited] Return thousands separator character. This function returns a char_type to use as a thousands separator. It does so by returning returning numpunct<char_type>::do_thousands_sep(). Returns: char_type representing a thousands separator. Definition at line 1721 of file locale_facets.h. template<typename _CharT > string_type std::numpunct< _CharT >::truename () const [inline], [inherited] Return string representation of bool true. This function returns a string_type containing the text representation for true bool variables. It does so by calling numpunct<char_type>::do_truename(). Returns: string_type representing printed form of true. Definition at line 1765 of file locale_facets.h. Member Data Documentation template<typename _CharT > locale::id std::numpunct< _CharT >::id [static], [inherited] Numpunct facet id. Definition at line 1658 of file locale_facets.h. Author Generated automatically by Doxygen for libstdc++ from the source code. libstdc++ Tue Nov 27 2012 std::numpunct_byname< _CharT >(3cxx)
All times are GMT -4. The time now is 05:20 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy