LinuxQuestions.org
LinuxAnswers - the LQ Linux tutorial section.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices



Reply
 
Search this Thread
Old 07-22-2005, 04:57 AM   #1
Cyberdyne
LQ Newbie
 
Registered: Jul 2005
Location: Bolton
Distribution: Slackware
Posts: 2

Rep: Reputation: 0
Need workaround for Date Format


I have an application that is compiled to run on Linux and windows this application has time and date information displayed in it.

Under windows the Date format is taken from the host computer such that if the regional settings are for the USA the date comes out as MMDDYY and if the regional settings are for the UK the Date shows DDMMYY.

Under linux (slackware) I always end up with date format as MMDDYY (USA) and I need UK format.

I have tried LC_ALL en_GB which I belive sets the environmental variables such that they are for the UK

The software uses the call NOW to get the system time but depends on the O/S for the formatting, I can get this changed in the futre but I need a workaround NOW

Can anyone help me out
 
Old 07-22-2005, 05:13 AM   #2
Bruce Hill
HCL Maintainer
 
Registered: Jun 2003
Location: Tupelo, MS
Distribution: Gentoo
Posts: 6,926

Rep: Reputation: 124Reputation: 124
Issue "man date" and that manual page explains HOW-TO.
 
Old 07-22-2005, 05:36 AM   #3
Cyberdyne
LQ Newbie
 
Registered: Jul 2005
Location: Bolton
Distribution: Slackware
Posts: 2

Original Poster
Rep: Reputation: 0
Thank you for your reply
and excuse me for being a a newbie but I can't figure it out

Does the format added to date change the system representation of date or just the way that date is displayed by the date command you just typed
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
'date' command format Neorio Linux - General 3 01-18-2011 06:18 AM
A question regarding the date format marsques Linux - General 1 03-12-2005 06:28 PM
Date format Mik LQ Suggestions & Feedback 8 12-05-2004 11:14 AM
MySQL date format mnauta Linux - General 2 05-13-2004 07:20 PM
All I want to do is change the date format... Slycordinator Linux - General 5 12-11-2003 02:27 AM


All times are GMT -5. The time now is 06:43 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration