Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
Print Date
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  8 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Lucky  
View profile  
 More options Nov 14 2012, 11:24 am
From: Lucky <mrkh...@gmail.com>
Date: Wed, 14 Nov 2012 18:06:46 +0200
Local: Wed, Nov 14 2012 11:06 am
Subject: [erlang-questions] Print Date
Hi Erlang Developers'

I'm stuck here, I am trying to print date which is in this format "2012/04/23" using io:format/2, but I want it to be printed like this: 2012/04/23 without invited commas, how do I go about resolving this?

Kindest Regards,
Lucky

To God Alone be the Glory...Amen.
_______________________________________________
erlang-questions mailing list
erlang-questi...@erlang.org
http://erlang.org/mailman/listinfo/erlang-questions


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Artem Teslenko  
View profile  
 More options Nov 14 2012, 11:31 am
From: Artem Teslenko <a...@ipv6.dp.ua>
Date: Wed, 14 Nov 2012 17:31:01 +0100
Local: Wed, Nov 14 2012 11:31 am
Subject: Re: [erlang-questions] Print Date
Use ~s instead of ~p in the format argument of io:format/2:

1> io:format("~s~n", ["2012/04/23"]).
2012/04/23

On Wed, 14 Nov 2012, Lucky wrote:
> Hi Erlang Developers'

> I'm stuck here, I am trying to print date which is in this format "2012/04/23" using io:format/2, but I want it to be printed like this: 2012/04/23 without invited commas, how do I go about resolving this?

> Kindest Regards,
> Lucky

> To God Alone be the Glory...Amen.
> _______________________________________________
> erlang-questions mailing list
> erlang-questi...@erlang.org
> http://erlang.org/mailman/listinfo/erlang-questions

_______________________________________________
erlang-questions mailing list
erlang-questi...@erlang.org
http://erlang.org/mailman/listinfo/erlang-questions

 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Fredrik Andersson  
View profile  
 More options Nov 14 2012, 11:37 am
From: Fredrik Andersson <sed...@consbox.se>
Date: Wed, 14 Nov 2012 17:37:00 +0100
Subject: Re: [erlang-questions] Print Date

Here is a good resource on learning Erlang, please read it
http://learnyousomeerlang.com/content

When you know what function you need to use but want to change some minor
behaviour check the documentation for it http://erldocs.com/ has a good
search function for finding the documentation for most Erlang functions.

_______________________________________________
erlang-questions mailing list
erlang-questi...@erlang.org
http://erlang.org/mailman/listinfo/erlang-questions


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Håkan Nilsson  
View profile  
 More options Nov 14 2012, 11:39 am
From: Håkan Nilsson <hakan.nils...@klarna.com>
Date: Wed, 14 Nov 2012 17:38:58 +0100
Local: Wed, Nov 14 2012 11:38 am
Subject: Re: [erlang-questions] Print Date

If you run into any more problems I would recommend that you read
http://www.erldocs.com before asking the mailing list.

--
Håkan Nilsson
Developer
Engineering
+46 70 001 27 07
klarna.se  Klarna AB
Norra Stationsgatan 61
11343 Stockholm
+46 8 120 120 00 [image: Klarna]

_______________________________________________
erlang-questions mailing list
erlang-questi...@erlang.org
http://erlang.org/mailman/listinfo/erlang-questions


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Richard O'Keefe  
View profile  
 More options Nov 14 2012, 5:25 pm
From: "Richard O'Keefe" <o...@cs.otago.ac.nz>
Date: Thu, 15 Nov 2012 11:25:41 +1300
Local: Wed, Nov 14 2012 5:25 pm
Subject: Re: [erlang-questions] Print Date

On 15/11/2012, at 5:06 AM, Lucky wrote:

> Hi Erlang Developers'

> I'm stuck here, I am trying to print date which is in this format "2012/04/23" using io:format/2, but I want it to be printed like this: 2012/04/23 without invited commas, how do I go about resolving this?

READ THE MANUAL!

Specifically http://www.erlang.org/doc/man/io.html#format-2

Ask yourself, "how did those quotation marks get there?  What did I to that
made io:format/2 think I was ASKING for them?"

It looks to me as though you used ~p when you meant ~s,
and in particular it looks to me as though you very likely
just want to do
        io:put_chars(IoDevice, "2012/04/23")
and not involve io:format/2 at all.  (Like in C you'd use fputs() rather
than fprintf().)

1> io:format(standard_io, "~p~n", ["2012/04/23"]).
"2012/04/23"
ok
2> io:format(standard_io, "~s~n", ["2012/04/23"]).
2012/04/23
ok
3> io:put_chars(standard_io, "2012/04/23"), io:nl(standard_io).
2012/04/23
ok

Before posting one more question, PLEASE try reading the manual.

_______________________________________________
erlang-questions mailing list
erlang-questi...@erlang.org
http://erlang.org/mailman/listinfo/erlang-questions


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Henrik Nord  
View profile  
 More options Nov 15 2012, 9:06 am
From: Henrik Nord <hen...@erlang.org>
Date: Thu, 15 Nov 2012 15:06:38 +0100
Local: Thurs, Nov 15 2012 9:06 am
Subject: Re: [erlang-questions] Print Date
Hi

Why not encourage users of Erlang, and just help them out, or ignore
those questions that you deem to "easy" to be allowed to be asked on the
mailing list.

There is really no reason to shout at a potential Erlang user of the
year, just because he/she is just starting out with the language and
does not know the ropes yet. Maybe its her first language? first time
trying to program anything?, do you want to be responsible for scaring
users away from the community?

BE NICE ON THE MAILING LIST PLEASE

To Lucky:
www.erlang.org contains a lot of information including, but not limited
to, the documentation.
http://www.erlang.org/erldoc

There is also http://learnyousomeerlang.com/ for a guide and a first
look at the language.

Erlang solutions also provides courses both E-lerning and classroom

https://www.erlang-solutions.com/services/training

On 2012-11-14 23:25, Richard O'Keefe wrote:

_______________________________________________
erlang-questions mailing list
erlang-questi...@erlang.org
http://erlang.org/mailman/listinfo/erlang-questions

 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Thomas Lindgren  
View profile  
 More options Nov 16 2012, 7:47 am
From: Thomas Lindgren <thomasl_erl...@yahoo.com>
Date: Fri, 16 Nov 2012 04:47:37 -0800 (PST)
Local: Fri, Nov 16 2012 7:47 am
Subject: Re: [erlang-questions] Print Date

Here's my honest advice to the guy who has been sending us his homework: For these kinds of problems, ask your tutor. 

And as a bonus, here's something that may help homework guy out, hopefully before he will be inflicted on the world as a contractor: http://catb.org/~esr/faqs/smart-questions.html

Best,

Thomas

_______________________________________________
erlang-questions mailing list
erlang-questi...@erlang.org
http://erlang.org/mailman/listinfo/erlang-questions

 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Tony Rogvall  
View profile  
 More options Nov 16 2012, 8:47 am
From: Tony Rogvall <t...@rogvall.se>
Date: Fri, 16 Nov 2012 14:46:47 +0100
Local: Fri, Nov 16 2012 8:46 am
Subject: Re: [erlang-questions] Print Date

+1
But maybe Lucky is some new kind of bot ?

/Tony

On 15 nov 2012, at 15:06, Henrik Nord <hen...@erlang.org> wrote:

"Installing applications can lead to corruption over time. Applications gradually write over each other's libraries, partial upgrades occur, user and system errors happen, and minute changes may be unnoticeable and difficult to fix"

_______________________________________________
erlang-questions mailing list
erlang-questi...@erlang.org
http://erlang.org/mailman/listinfo/erlang-questions


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions Older topic »